|
1 | 1 | /********************************************************************* |
2 | 2 | * |
3 | | - * $Id: ypkt_lin.c 26992 2017-03-30 15:51:01Z seb $ |
| 3 | + * $Id: ypkt_lin.c 27225 2017-04-21 13:34:58Z seb $ |
4 | 4 | * |
5 | 5 | * OS-specific USB packet layer, Linux version |
6 | 6 | * |
@@ -198,7 +198,7 @@ static int getUsbStringASCII(libusb_device_handle *hdl, libusb_device *dev, u8 d |
198 | 198 | len = length-1; |
199 | 199 | memcpy(data, c->string, len); |
200 | 200 | data[len] = 0; |
201 | | - HALLOG("return string from cache (%p:%d->%s)\n",dev,desc_index,c->string); |
| 201 | + HALENUMLOG("return string from cache (%p:%d->%s)\n",dev,desc_index,c->string); |
202 | 202 | yLeaveCriticalSection(&yContext->string_cache_cs); |
203 | 203 | return c->len; |
204 | 204 | } else { |
@@ -242,7 +242,7 @@ static int getUsbStringASCII(libusb_device_handle *hdl, libusb_device *dev, u8 d |
242 | 242 | memcpy(f->string, data, len+1); |
243 | 243 | f->len = len; |
244 | 244 | f->expiration = yapiGetTickCount() + STRING_CACHE_EXPIRATION; |
245 | | - HALLOG("add string to cache (%p:%d->%s)\n",dev,desc_index,f->string); |
| 245 | + HALENUMLOG("add string to cache (%p:%d->%s)\n",dev,desc_index,f->string); |
246 | 246 | } |
247 | 247 | yLeaveCriticalSection(&yContext->string_cache_cs); |
248 | 248 |
|
@@ -352,7 +352,7 @@ int yyyUSBGetInterfaces(yInterfaceSt **ifaces,int *nbifaceDetect,char *errmsg) |
352 | 352 | nbdev = libusb_get_device_list(yContext->libusb,&list); |
353 | 353 | if (nbdev < 0) |
354 | 354 | return yLinSetErr("Unable to get device list", nbdev, errmsg); |
355 | | - HALLOG("%d devices found\n",nbdev); |
| 355 | + HALENUMLOG("%d devices found\n",nbdev); |
356 | 356 |
|
357 | 357 | // allocate buffer for detected interfaces |
358 | 358 | *nbifaceDetect = 0; |
@@ -390,17 +390,17 @@ int yyyUSBGetInterfaces(yInterfaceSt **ifaces,int *nbifaceDetect,char *errmsg) |
390 | 390 | goto exit; |
391 | 391 | } |
392 | 392 | if (res != 0){ |
393 | | - HALLOG("unable to access device %x:%x\n", desc.idVendor, desc.idProduct); |
| 393 | + HALENUMLOG("unable to access device %x:%x\n", desc.idVendor, desc.idProduct); |
394 | 394 | continue; |
395 | 395 | } |
396 | | - HALLOG("try to get serial for %x:%x:%x (%p)\n", desc.idVendor, desc.idProduct, desc.iSerialNumber, dev); |
| 396 | + HALENUMLOG("try to get serial for %x:%x:%x (%p)\n", desc.idVendor, desc.idProduct, desc.iSerialNumber, dev); |
397 | 397 | res = getUsbStringASCII(hdl, dev, desc.iSerialNumber, iface->serial, YOCTO_SERIAL_LEN); |
398 | 398 | if (res < 0) { |
399 | | - HALLOG("unable to get serial for device %x:%x\n", desc.idVendor, desc.idProduct); |
| 399 | + HALENUMLOG("unable to get serial for device %x:%x\n", desc.idVendor, desc.idProduct); |
400 | 400 | } |
401 | 401 | libusb_close(hdl); |
402 | 402 | (*nbifaceDetect)++; |
403 | | - HALLOG("----Running Dev %x:%x:%d:%s ---\n", iface->vendorid, iface->deviceid, iface->ifaceno, iface->serial); |
| 403 | + HALENUMLOG("----Running Dev %x:%x:%d:%s ---\n", iface->vendorid, iface->deviceid, iface->ifaceno, iface->serial); |
404 | 404 | libusb_free_config_descriptor(config); |
405 | 405 | } |
406 | 406 |
|
|
0 commit comments