From: matt mooney Date: Mon, 20 Jun 2011 05:44:35 +0000 (-0700) Subject: staging: usbip: userspace: libsrc: set program name for logging X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f2fb62b371703e70593780ad40333c2e21030df8;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git staging: usbip: userspace: libsrc: set program name for logging Set the program name to "libusbip" to identify that the message is from the library code. Signed-off-by: matt mooney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/usbip/userspace/libsrc/stub_driver.c b/drivers/staging/usbip/userspace/libsrc/stub_driver.c index 6a1272d1b6bf..b62f6b2363e1 100644 --- a/drivers/staging/usbip/userspace/libsrc/stub_driver.c +++ b/drivers/staging/usbip/userspace/libsrc/stub_driver.c @@ -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) diff --git a/drivers/staging/usbip/userspace/libsrc/usbip_common.c b/drivers/staging/usbip/userspace/libsrc/usbip_common.c index e9d06143141c..6ac4361946cb 100644 --- a/drivers/staging/usbip/userspace/libsrc/usbip_common.c +++ b/drivers/staging/usbip/userspace/libsrc/usbip_common.c @@ -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; diff --git a/drivers/staging/usbip/userspace/libsrc/vhci_driver.c b/drivers/staging/usbip/userspace/libsrc/vhci_driver.c index 386f63b456f5..f10121c3fce5 100644 --- a/drivers/staging/usbip/userspace/libsrc/vhci_driver.c +++ b/drivers/staging/usbip/userspace/libsrc/vhci_driver.c @@ -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)