Alexandre Julliard : dinput: Don'
t use sizeof in traces to avoid printf format warnings.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 14 06:50:44 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 7ad5f9eca048647ad007fea22bf2ea01a31982dc
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7ad5f9eca048647ad007fea22bf2ea01a31982dc
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jun 13 14:09:55 2006 +0200
dinput: Don't use sizeof in traces to avoid printf format warnings.
---
dlls/dinput/device.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c
index 5211782..d8924d3 100644
--- a/dlls/dinput/device.c
+++ b/dlls/dinput/device.c
@@ -189,11 +189,11 @@ void _dump_DIDATAFORMAT(const DIDATAFORM
TRACE("Dumping DIDATAFORMAT structure:\n");
TRACE(" - dwSize: %ld\n", df->dwSize);
if (df->dwSize != sizeof(DIDATAFORMAT)) {
- WARN("Non-standard DIDATAFORMAT structure size (%ld instead of %d).\n", df->dwSize, sizeof(DIDATAFORMAT));
+ WARN("Non-standard DIDATAFORMAT structure size %ld\n", df->dwSize);
}
TRACE(" - dwObjsize: %ld\n", df->dwObjSize);
if (df->dwObjSize != sizeof(DIOBJECTDATAFORMAT)) {
- WARN("Non-standard DIOBJECTDATAFORMAT structure size (%ld instead of %d).\n", df->dwObjSize, sizeof(DIOBJECTDATAFORMAT));
+ WARN("Non-standard DIOBJECTDATAFORMAT structure size %ld\n", df->dwObjSize);
}
TRACE(" - dwFlags: 0x%08lx (", df->dwFlags);
switch (df->dwFlags) {
More information about the wine-cvs
mailing list