Merge pull request #2892 from qlyoung/fix-log-ref-number-signedness

lib: error codes are uint32_t's
This commit is contained in:
David Lamparter 2018-08-22 21:21:40 +02:00 committed by GitHub
commit 093033e7cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ extern void zlog_debug(const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
/* For logs which have error codes associated with them */ /* For logs which have error codes associated with them */
#define flog_err(ferr_id, format, ...) \ #define flog_err(ferr_id, format, ...) \
zlog_err("[EC %d] " format, ferr_id, ##__VA_ARGS__) zlog_err("[EC %"PRIu32"] " format, ferr_id, ##__VA_ARGS__)
#define flog_err_sys(ferr_id, format, ...) \ #define flog_err_sys(ferr_id, format, ...) \
flog_err(ferr_id, format, ##__VA_ARGS__) flog_err(ferr_id, format, ##__VA_ARGS__)