[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] [PATCH][2/3] USB. Correct debug messages
Commit message:
Change format specifiers to get correct values in debug messages.
Contributed by David Gálvez
diff -r 8028d7046bc9 -r a7269544c408 sys/usb/src.km/udd/storage/xhdi.c
--- a/sys/usb/src.km/udd/storage/xhdi.c Thu Apr 16 19:26:28 2015 +0200
+++ b/sys/usb/src.km/udd/storage/xhdi.c Thu Apr 16 19:27:59 2015 +0200
@@ -320,14 +320,14 @@
memcpy(bpb, myBPB, sizeof(BPB));
DEBUG(("XHInqDev2() BPB"));
- DEBUG(("recsiz: %d", bpb->recsiz));
+ DEBUG(("recsiz: %u", bpb->recsiz));
DEBUG(("clsiz: %d", bpb->clsiz));
- DEBUG(("clsizb: %d", bpb->clsizb));
+ DEBUG(("clsizb: %u", bpb->clsizb));
DEBUG(("rdlen: %d", bpb->rdlen));
DEBUG(("fsiz: %d", bpb->fsiz));
DEBUG(("fatrec: %d", bpb->fatrec));
DEBUG(("datrec: %d", bpb->datrec));
- DEBUG(("numcl: %d", bpb->numcl));
+ DEBUG(("numcl: %u", bpb->numcl));
DEBUG(("bflags: %x", bpb->bflags));
}