Skip to content

Commit

Permalink
staging: usbip: userspace: libsrc: set program name for logging
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
matt mooney authored and Greg Kroah-Hartman committed Jul 6, 2011
1 parent 4fd83e8 commit f2fb62b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/staging/usbip/userspace/libsrc/stub_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions drivers/staging/usbip/userspace/libsrc/usbip_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions drivers/staging/usbip/userspace/libsrc/vhci_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f2fb62b

Please sign in to comment.