diff options
| author | Dean Camera <dean@fourwalledcubicle.com> | 2011-06-20 01:33:42 +0000 | 
|---|---|---|
| committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-06-20 01:33:42 +0000 | 
| commit | 5e0c80770840c88d9478e1c3252c20c37b15edea (patch) | |
| tree | c75d2f4aed77ad0b1c0122d23265f4d7cc358284 | |
| parent | a7dd98444674e407ef58d70d60b3d89fd548cd58 (diff) | |
| download | lufa-5e0c80770840c88d9478e1c3252c20c37b15edea.tar.gz lufa-5e0c80770840c88d9478e1c3252c20c37b15edea.tar.bz2 lufa-5e0c80770840c88d9478e1c3252c20c37b15edea.zip  | |
Fix incorrect printf format specifier in the HIDReportViewer project.
| -rw-r--r-- | LUFA/ManPages/FutureChanges.txt | 1 | ||||
| -rw-r--r-- | Projects/HIDReportViewer/HIDReportViewer.c | 16 | 
2 files changed, 8 insertions, 9 deletions
diff --git a/LUFA/ManPages/FutureChanges.txt b/LUFA/ManPages/FutureChanges.txt index 077d43e3c..b2cbf0b33 100644 --- a/LUFA/ManPages/FutureChanges.txt +++ b/LUFA/ManPages/FutureChanges.txt @@ -30,7 +30,6 @@    *  - Demos/Projects    *      -# Device/Host USB bridge    *      -# Finish incomplete demos and projects -  *      -# HID Report Parser Dumper Project    *      -# Add class driver support for Test and Measurement class    *      -# Add class driver support for EEM class    *      -# Add class driver support for ECM class diff --git a/Projects/HIDReportViewer/HIDReportViewer.c b/Projects/HIDReportViewer/HIDReportViewer.c index fdf187d38..e01a38a7e 100644 --- a/Projects/HIDReportViewer/HIDReportViewer.c +++ b/Projects/HIDReportViewer/HIDReportViewer.c @@ -151,14 +151,14 @@ int main(void)  					              "    - Item Flags:         0x%02" PRIX8  "\r\n"
  					              "    - Item Offset (Bits): 0x%02" PRIX8  "\r\n"
  					              "    - Item Size (Bits):   0x%02" PRIX8  "\r\n"
 -					              "    - Usage Page:         0x%04" PRIX32 "\r\n"
 -					              "    - Usage:              0x%04" PRIX32 "\r\n"
 -					              "    - Unit Type:          0x%04" PRIX32 "\r\n"
 +					              "    - Usage Page:         0x%04" PRIX16 "\r\n"
 +					              "    - Usage:              0x%04" PRIX16 "\r\n"
 +					              "    - Unit Type:          0x%08" PRIX32 "\r\n"
  					              "    - Unit Exponent:      0x%02" PRIX8  "\r\n"
 -					              "    - Logical Minimum:    0x%04" PRIX32 "\r\n"
 -					              "    - Logical Maximum:    0x%04" PRIX32 "\r\n"
 -					              "    - Physical Minimum:   0x%04" PRIX32 "\r\n"
 -					              "    - Physical Maximum:   0x%04" PRIX32 "\r\n"
 +					              "    - Logical Minimum:    0x%08" PRIX32 "\r\n"
 +					              "    - Logical Maximum:    0x%08" PRIX32 "\r\n"
 +					              "    - Physical Minimum:   0x%08" PRIX32 "\r\n"
 +					              "    - Physical Maximum:   0x%08" PRIX32 "\r\n"
  					              "    - Collection Path:\r\n"),
  					         ItemIndex,
  					         RItem->ReportID,
 @@ -183,7 +183,7 @@ int main(void)  						for (uint8_t i = 0; i < CollectionDepth; i++)
  						  putchar(' ');
 -						printf_P(PSTR("- Type: 0x%02" PRIX8 "\r\n"), CollectionPath->Type);
 +						printf_P(PSTR("- Type:  0x%02" PRIX8 "\r\n"), CollectionPath->Type);
  						for (uint8_t i = 0; i < CollectionDepth; i++)
  						  putchar(' ');
  | 
