* [Qemu-devel] [5535] Silence warnings about unused variables
@ 2008-10-25 11:47 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-10-25 11:47 UTC (permalink / raw)
To: qemu-devel
Revision: 5535
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5535
Author: blueswir1
Date: 2008-10-25 11:47:20 +0000 (Sat, 25 Oct 2008)
Log Message:
-----------
Silence warnings about unused variables
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Modified Paths:
--------------
trunk/usb-linux.c
Modified: trunk/usb-linux.c
===================================================================
--- trunk/usb-linux.c 2008-10-25 11:26:41 UTC (rev 5534)
+++ trunk/usb-linux.c 2008-10-25 11:47:20 UTC (rev 5535)
@@ -76,6 +76,8 @@
#define dprintf(...)
#endif
+#define USBDBG_DEVOPENED "husb: opened %s/devices\n"
+
#define USBPROCBUS_PATH "/proc/bus/usb"
#define PRODUCT_NAME_SZ 32
#define MAX_ENDPOINTS 16
@@ -1262,8 +1264,6 @@
FILE *f = 0;
DIR *dir = 0;
int ret = 0;
- const char *devices = "/devices";
- const char *opened = "husb: opened %s%s\n";
const char *fs_type[] = {"unknown", "proc", "dev", "sys"};
char devpath[PATH_MAX];
@@ -1275,7 +1275,7 @@
strcpy(devpath, USBPROCBUS_PATH);
usb_fs_type = USB_FS_PROC;
fclose(f);
- dprintf(opened, USBPROCBUS_PATH, devices);
+ dprintf(USBDBG_DEVOPENED, USBPROCBUS_PATH);
goto found_devices;
}
/* try additional methods if an access method hasn't been found yet */
@@ -1285,7 +1285,7 @@
strcpy(devpath, USBDEVBUS_PATH);
usb_fs_type = USB_FS_DEV;
fclose(f);
- dprintf(opened, USBDEVBUS_PATH, devices);
+ dprintf(USBDBG_DEVOPENED, USBDEVBUS_PATH);
goto found_devices;
}
dir = opendir(USBSYSBUS_PATH "/devices");
@@ -1294,7 +1294,7 @@
strcpy(devpath, USBDEVBUS_PATH);
usb_fs_type = USB_FS_SYS;
closedir(dir);
- dprintf(opened, USBSYSBUS_PATH, devices);
+ dprintf(USBDBG_DEVOPENED, USBSYSBUS_PATH);
goto found_devices;
}
found_devices:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-25 11:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-25 11:47 [Qemu-devel] [5535] Silence warnings about unused variables Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).