Skip to content

Commit

Permalink
Add type conversion for printing
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Aug 19, 2016
1 parent 0710d83 commit 04639c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gammu/files.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ static GSM_Error PrintFileSystemStatus(void)
printf("\n");

printf(LISTFORMAT, _("Phone memory"));
printf(_("%i bytes (free %i bytes, used %i bytes)"),
Status.Free + Status.Used, Status.Free, Status.Used);
printf(_("%ld bytes (free %ld bytes, used %ld bytes)"),
(long)(Status.Free + Status.Used), (long)(Status.Free), (long)(Status.Used));
printf("\n");

if (Status.UsedImages != 0 || Status.UsedSounds != 0
|| Status.UsedThemes != 0) {
printf(LISTFORMAT, _("Usage details"));
printf(_("images: %i, sounds: %i, themes: %i"),
Status.UsedImages, Status.UsedSounds, Status.UsedThemes);
printf(_("images: %ld, sounds: %ld, themes: %ld"),
(long)(Status.UsedImages), (long)(Status.UsedSounds), (long)(Status.UsedThemes));
printf("\n");
}

Expand Down

0 comments on commit 04639c1

Please sign in to comment.