Skip to content

Commit

Permalink
machinetalk/support/unionread.c: silence compile warning
Browse files Browse the repository at this point in the history
    Compiling machinetalk/support/unionread.c
    machinetalk/support/unionread.c: In function ‘print_container’:
    machinetalk/support/unionread.c:60:33: warning: \
      format ‘%lu’ expects argument of type ‘long unsigned int’, \
      but argument 2 has type ‘uint64_t {aka long long unsigned int}’ \
      [-Wformat=]
         printf("submessage length=%lu\n", length);
                                 ^
  • Loading branch information
zultron committed Sep 25, 2017
1 parent e461c35 commit 7cd1dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/machinetalk/support/unionread.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ bool print_container(pb_istream_t *stream)
if (!pb_decode_varint(stream, &length)) {
printf("Parsing field#2 failed: %s\n", PB_GET_ERROR(stream));
}
printf("submessage length=%lu\n", length);
printf("submessage length=%llu\n", length);

printf("submessage: %s NML; %s Motion\n",
is_NML_container(tag) ? "is" : "not",
Expand Down

0 comments on commit 7cd1dfe

Please sign in to comment.