Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2004 04:46:19 -0800 (PST)
From:      MIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/usb usb_subr.c
Message-ID:  <200401181246.i0ICkJxW042918@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
sanpei      2004/01/18 04:46:19 PST

  FreeBSD src repository

  Modified files:
    sys/dev/usb          usb_subr.c 
  Log:
  Empty vendor string overrides knowndevs
  
  ubd_devinfo_vp() is getting an empty string from its  usbd_get_string()
  call on the vendor, instead of NULL.  This means usb_knowndevs in not
  consulted.
  
  Add lines between grabbing those char *s and the USBVERBOSE ifdef to
  set vendor to NULL if it is the empty string (similarly for product).
  
  This causes vendor to be filled-out, although the product name read
  overrules usb_knowndevs (this appears to be a conscience decision made
  by the NetBSD folks):
  
  PR:             kern/56097
  Submitted by:   Hal Burch <hburch@lumeta.com>
  MFC after:      1 week
  
  Revision  Changes    Path
  1.59      +4 -0      src/sys/dev/usb/usb_subr.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401181246.i0ICkJxW042918>