Skip to content

Commit

Permalink
Merge pull request #46 from jluebbe/info-sizes
Browse files Browse the repository at this point in the history
main: show sizes with the info command
  • Loading branch information
Enrico Jorns committed May 4, 2016
2 parents ce900eb + 8bd4f3a commit a2791ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ static gboolean info_start(int argc, char **argv)
g_print("(%d)\t%s\n", ++cnt, img->filename);
g_print("\tSlotclass: %s\n", img->slotclass);
g_print("\tChecksum: %s\n", img->checksum.digest);
g_print("\tSize: %"G_GSIZE_FORMAT"\n", img->checksum.size);
}

cnt = g_list_length(manifest->files);
Expand All @@ -290,8 +291,9 @@ static gboolean info_start(int argc, char **argv)
RaucFile *file = l->data;
g_print("(%d)\t%s\n", ++cnt, file->filename);
g_print("\tSlotclass: %s\n", file->slotclass);
g_print("\tDest: %s\n", file->destname);
g_print("\tDest: %s\n", file->destname);
g_print("\tChecksum: %s\n", file->checksum.digest);
g_print("\tSize: %"G_GSIZE_FORMAT"\n", file->checksum.size);
}

out:
Expand Down

0 comments on commit a2791ad

Please sign in to comment.