check_cc_pid: fix error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror, -Wformat]
[email protected] (Michael Ira Krufky) Wed, 16 Apr 2014 15:53:36 +0200 (CEST)
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <[email protected]> |
libdvbpsi | branch: master | Michael Ira Krufky <[email protected]> | Tue Apr 15 20:28:00 2014 -0400| [7f3b02173d9c65ea9e298e433416b40df720ad52] | committer: Michael Ira Krufky check_cc_pid: fix error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat] gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -Wall -Werror --std=gnu99 -D_GNU_SOURCE -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -DDVBPSI_DIST -MT check_cc_pid-check_cc_pid.o -MD -MP -MF .deps/check_cc_pid-check_cc_pid.Tpo -c -o check_cc_pid-check_cc_pid.o `test -f 'check_cc_pid.c' || echo './'`check_cc_pid.c check_cc_pid.c:69:20: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat] n, pid, pid, cc, ^ 1 error generated. make[3]: *** [check_cc_pid-check_cc_pid.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Signed-off-by: Michael Ira Krufky <[email protected]> > http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=7f3b02173d9c65ea9e298e433416b40df720ad52 --- examples/check_cc_pid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/check_cc_pid.c b/examples/check_cc_pid.c index e813a32..cdf3181 100644 --- a/examples/check_cc_pid.c +++ b/examples/check_cc_pid.c @@ -65,7 +65,7 @@ int main(int argc, char *argv[]) n++; tcc = cc; if (pid == tpid) - printf("packet %ld, pid %u (0x%x), cc %d %s\n", + printf("packet %"PRId64", pid %u (0x%x), cc %d %s\n", n, pid, pid, cc, ((cc % 16) == (tcc + 1)%16) ? "discontinuity" : ""); } _______________________________________________ libdvbpsi-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libdvbpsi-devel