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

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

dump_pids: 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 dump_pids-dump_pids.o -MD -MP -MF .deps/dump_pids-dump_pids.Tpo -c -o dump_pids-dump_pids.o `test -f 'dump_pids.c' || echo './'`dump_pids.c
dump_pids.c:56:54: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
        printf("packet %ld, pid %u (0x%x), cc %d\n", n, pid, pid, cc );
                       ~~~                           ^
                       %lld
1 error generated.
make[3]: *** [dump_pids-dump_pids.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 9800bca7
......@@ -53,7 +53,7 @@ int main(int argc, char *argv[])
uint32_t pid = ts_getpid(&p[0]);
uint32_t cc = ts_getcc(&p[0]);
n++;
printf("packet %ld, pid %u (0x%x), cc %d\n", n, pid, pid, cc );
printf("packet %"PRId64", pid %u (0x%x), cc %d\n", n, pid, pid, cc );
}
close(file);
......
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