diff options
author | adrian <adrian@FreeBSD.org> | 2013-01-02 18:05:31 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-01-02 18:05:31 +0000 |
commit | edb42d2f964e7d982660a6d42087bd4a8cefff3d (patch) | |
tree | ea74c4b309b59e023db466421ff4746cfdb31795 /tools | |
parent | 8ca6035013e1223ad9c4f81e28d697317d7b6553 (diff) | |
download | FreeBSD-src-edb42d2f964e7d982660a6d42087bd4a8cefff3d.zip FreeBSD-src-edb42d2f964e7d982660a6d42087bd4a8cefff3d.tar.gz |
Fix some printf() formats.
Found by: clang
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/ath/athdebug/athdebug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/tools/ath/athdebug/athdebug.c b/tools/tools/ath/athdebug/athdebug.c index 4f8f7c8..b118939 100644 --- a/tools/tools/ath/athdebug/athdebug.c +++ b/tools/tools/ath/athdebug/athdebug.c @@ -206,20 +206,20 @@ main(int argc, char *argv[]) bit = strtoul(cp, NULL, 0); else errx(1, "unknown flag %.*s", - tp-cp, cp); + (int) (tp-cp), cp); } ndebug = bit; } } while (*(cp = tp) != '\0'); } if (debug != ndebug) { - printf("%s: 0x%x => ", oid, debug); + printf("%s: 0x%llx => ", oid, (long long) debug); if (sysctlbyname(oid, NULL, NULL, &ndebug, sizeof(ndebug)) < 0) err(1, "sysctl-set(%s)", oid); - printf("0x%x", ndebug); + printf("0x%llx", (long long) ndebug); debug = ndebug; } else - printf("%s: 0x%x", oid, debug); + printf("%s: 0x%llx", oid, (long long) debug); sep = "<"; for (i = 0; i < N(flags); i++) if (debug & flags[i].bit) { |