Code fixes for warnings during build time for the application in the folder cddl/usr.sbin/zdb
Diff Detail
Diff Detail
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 9848 Build 10283: arc lint + arc unit
Event Timeline
Comment Actions
Changelog:
Pre-fix warnings are at: https://gist.github.com/aprieger-llnw/5fd2d6cd7562aeac1a261e7b4b72f559
- cddl/contrib/opensolaris/cmd/zdb/zdb.c
- warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
- fix: change the print format modifier for the uint64_t variable from "%lld" to "%"PRIu64 on lines 1149
- warning: format string is not a string literal (potentially insecure) [-Wformat-security]
- fix: add the "%s" string modifier in the printf statement before the expression on lines 2049, and 2061
- warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]