Commit 7f3b0217 authored by Michael Ira Krufky's avatar Michael Ira Krufky

check_cc_pid: fix error: format specifies type 'long' but the argument has...

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: default avatarMichael Ira Krufky <mkrufky@linuxtv.org>
parent 7bafc5c7
......@@ -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" : "");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment