Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kthc3-0002hS-3o for qemu-devel@nongnu.org; Sat, 25 Oct 2008 07:47:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kthc2-0002gb-Fp for qemu-devel@nongnu.org; Sat, 25 Oct 2008 07:47:22 -0400 Received: from [199.232.76.173] (port=54991 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kthc2-0002gO-7T for qemu-devel@nongnu.org; Sat, 25 Oct 2008 07:47:22 -0400 Received: from savannah.gnu.org ([199.232.41.3]:51403 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kthc1-00081v-VL for qemu-devel@nongnu.org; Sat, 25 Oct 2008 07:47:22 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Kthc1-0007kI-27 for qemu-devel@nongnu.org; Sat, 25 Oct 2008 11:47:21 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Kthc0-0007kD-NJ for qemu-devel@nongnu.org; Sat, 25 Oct 2008 11:47:20 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sat, 25 Oct 2008 11:47:20 +0000 Subject: [Qemu-devel] [5535] Silence warnings about unused variables Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 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: