From a9006f3ed58c26fc67be5b5764c9d3a5beafa63c Mon Sep 17 00:00:00 2001 From: is Date: Tue, 10 Oct 2000 19:23:58 +0000 Subject: [PATCH] Format string cleanup by sommerfeld. --- lib/libusb/usage.c | 5 +++-- lib/libusb/usb_hid_usages | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/libusb/usage.c b/lib/libusb/usage.c index 2b98e4333be6..a4add2eb9ff0 100644 --- a/lib/libusb/usage.c +++ b/lib/libusb/usage.c @@ -1,4 +1,4 @@ -/* $NetBSD: usage.c,v 1.7 2000/09/24 02:17:52 augustss Exp $ */ +/* $NetBSD: usage.c,v 1.8 2000/10/10 19:23:58 is Exp $ */ /* * Copyright (c) 1999 Lennart Augustsson @@ -182,7 +182,8 @@ hid_usage_in_page(unsigned int u) for (j = 0; j < pages[k].pagesize; j++) { us = pages[k].page_contents[j].usage; if (us == -1) { - sprintf(b, pages[k].page_contents[j].name, i); + sprintf(b, "%s %d", + pages[k].page_contents[j].name, i); return b; } if (us == i) diff --git a/lib/libusb/usb_hid_usages b/lib/libusb/usb_hid_usages index de82f119da27..a663c37528f2 100644 --- a/lib/libusb/usb_hid_usages +++ b/lib/libusb/usb_hid_usages @@ -1,4 +1,4 @@ -# $NetBSD: usb_hid_usages,v 1.3 1999/07/02 15:46:53 simonb Exp $ +# $NetBSD: usb_hid_usages,v 1.4 2000/10/10 19:23:58 is Exp $ # # USB HID usage table # Syntax: @@ -454,11 +454,11 @@ 9 Button 0x00 No Button Pressed - * Button %d + * Button 10 Ordinal 0x00 Unused - * Instance %d + * Instance 11 Telephony 0x00 Unassigned @@ -854,7 +854,7 @@ 129 Monitor Enumerated Values 0x00 unassigned - * ENUM %d + * ENUM 130 VESA Virtual Controls 0x10 Brightness