Skip to content

Commit

Permalink
Fix nasa#50, add printf conversion casts
Browse files Browse the repository at this point in the history
Cast ssize_t to long and uint32 to unsigned long for printf.
This matches the %d and %lX conversions, respectively.
  • Loading branch information
jphickey committed Jun 14, 2021
1 parent 9761ab5 commit e0c08c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfe_ts_crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ int main(int argc, char **argv)

/* print the size/CRC results */
printf("\nTable File Name: %s\nTable Size: %ld Bytes\nExpected TS Validation CRC: "
"0x%08X\n\n",
argv[1], fileSize, fileCRC);
"0x%08lX\n\n",
argv[1], (long)fileSize, (unsigned long)fileCRC);

/* Close file and check*/
if (close(fd) != 0)
Expand Down

0 comments on commit e0c08c4

Please sign in to comment.