fixes for warnings during build time for the application in cddl/usr.bin/zstreamdump
Details
Details
Diff Detail
Diff Detail
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 9990 Build 10417: arc lint + arc unit
Event Timeline
Comment Actions
Changelog:
Pre-fix warnings are at: https://gist.github.com/aprieger-llnw/617c9f82b9ce12428da6c500ce95f120
- cddl/contrib/opensolaris/cmd/zstreamdump/zstreamdump.c
- warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
- fix: change the print format modifier for the uint64_t variables from "%llx" or "%llu" to "%"PRIu64 on lines 125, 392, 561 and 562
- warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
cddl/contrib/opensolaris/cmd/zstreamdump/zstreamdump.c | ||
---|---|---|
392 | Doesn't this change the behaviour, from printing in hex to printing in decimal? |
cddl/contrib/opensolaris/cmd/zstreamdump/zstreamdump.c | ||
---|---|---|
392 | Yeah, it does. This should be PRIx64 if I understand the macros in /usr/include/x86/_inttypes.h |