diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-16 19:36:02 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-19 17:28:59 -0700 |
commit | cee4aafcd5ebef34cae02f2215663df6c8551a20 (patch) | |
tree | 35fa32c3a1b1d831778cc4982488ca1ac2b1ed7c | |
parent | 8b426f8a15b5f2e6268438d2e0505fdbf8c64aeb (diff) |
Fix warnings about mismatched printf arg types
Mostly from types defined as long or unsigned long which we tried to
print as normal ints.
difs/cache.c: In function `CacheFreeMemory':
difs/cache.c:371: warning: int format, different type arg (arg 2)
difs/resource.c: In function `AddResource':
difs/resource.c:304: warning: unsigned int format, different type arg (arg 2)
difs/resource.c:304: warning: unsigned int format, different type arg (arg 3)
difs/resource.c:304: warning: unsigned int format, pointer arg (arg 4)
difs/resource.c: In function `FreeResource':
difs/resource.c:410: warning: unsigned int format, different type arg (arg 2)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | difs/cache.c | 2 | ||||
-rw-r--r-- | difs/resource.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/difs/cache.c b/difs/cache.c index 8ec3fd8..da30596 100644 --- a/difs/cache.c +++ b/difs/cache.c @@ -368,7 +368,7 @@ CacheFreeMemory( } } if (!found) - FatalError("freeing cache entry %d which isn't there\n", cid); + FatalError("freeing cache entry %ld which isn't there\n", cid); } /* ARGSUSED */ diff --git a/difs/resource.c b/difs/resource.c index 3c616f9..b469aba 100644 --- a/difs/resource.c +++ b/difs/resource.c @@ -300,7 +300,7 @@ AddResource( rrec = &clientTable[cid]; if (!rrec->buckets) { - ErrorF("AddResource(%x, %x, %x), client=%d \n", + ErrorF("AddResource(%lx, %lx, %p), client=%d \n", id, type, value, cid); FatalError("client not in use\n"); } @@ -407,7 +407,7 @@ FreeResource( } } if (!gotOne) - FatalError("freeing resource id=%X which isn't there\n", id); + FatalError("freeing resource id=%lX which isn't there\n", id); } #ifdef NOTYET |