lib/sa_log.c: In function 'sa_log_timestamp':
lib/sa_log.c:179:4: error: format '%ld' expects argument of type 'long int',
but argument 4 has type 'long long unsigned int' [-Werror=format=]
ctime_buf + 11, (u_int64_t) t.tv_usec / 1000);
^
lib/sa_log.c:189:5: error: format '%ld' expects argument of type 'long int',
but argument 4 has type 'long long unsigned int' [-Werror=format=]
diff.tv_sec, (u_int64_t)diff.tv_usec / 1000);
^
cc1: all warnings being treated as errors
make[1]: *** [lib/sa_log.o] Error 1
make[1]: Leaving directory `/«PKGBUILDDIR»'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2
Signed-off-by: Robert Love <[email protected]>
---
lib/sa_log.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sa_log.c b/lib/sa_log.c
index e970350..fa7ddf7 100644
--- a/lib/sa_log.c
+++ b/lib/sa_log.c
@@ -184,7 +184,7 @@ sa_log_timestamp(void)
tlast = t;
if (diff.tv_sec != 0 ||
diff.tv_usec >= sa_log_time_delta_min * 1000)
- fprintf(stderr, "%4ld.%3.3" PRIu64 "",
+ fprintf(stderr, "%4" PRIu64 ".%3.3" PRIu64,
diff.tv_sec, (u_int64_t)diff.tv_usec / 1000);
else
fprintf(stderr, "%8s ", "");
_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel