staging: usbip: userspace: libsrc: set program name for logging
authormatt mooney <mfm@muteddisk.com>
Mon, 20 Jun 2011 05:44:35 +0000 (22:44 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jul 2011 03:11:33 +0000 (20:11 -0700)
Set the program name to "libusbip" to identify that the message is
from the library code.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/userspace/libsrc/stub_driver.c
drivers/staging/usbip/userspace/libsrc/usbip_common.c
drivers/staging/usbip/userspace/libsrc/vhci_driver.c

index 6a1272d1b6bf4f343b34a6dd3dba2519f1a0e6c1..b62f6b2363e1bd5f6e0bb333be35f07f405f4a2c 100644 (file)
@@ -10,6 +10,9 @@
 
 #include "usbip.h"
 
+#undef  PROGNAME
+#define PROGNAME "libusbip"
+
 struct usbip_stub_driver *stub_driver;
 
 static struct sysfs_driver *open_sysfs_stub_driver(void)
index e9d06143141c5ca7ecf8f970d2ab509841a101cb..6ac4361946cbff2b94f0992e01fa6b0c9f257a74 100644 (file)
@@ -5,6 +5,9 @@
 #include "usbip.h"
 #include "names.h"
 
+#undef  PROGNAME
+#define PROGNAME "libusbip"
+
 int usbip_use_syslog = 0;
 int usbip_use_stderr = 0;
 int usbip_use_debug  = 0;
index 386f63b456f5af125b7dad0a35ffc5457bdd77d4..f10121c3fce5fa2bb49c34339c1ebd77b9e0d9ab 100644 (file)
@@ -5,6 +5,9 @@
 
 #include "usbip.h"
 
+#undef  PROGNAME
+#define PROGNAME "libusbip"
+
 struct usbip_vhci_driver *vhci_driver;
 
 static struct usbip_imported_device *imported_device_init(struct usbip_imported_device *idev, char *busid)