]> mj.ucw.cz Git - libucw.git/commitdiff
tableprinter: added forgotten default fmts for s64 a u64
authorRobert Kessl <kesslr@centrum.cz>
Thu, 26 Jun 2014 14:51:19 +0000 (16:51 +0200)
committerRobert Kessl <kesslr@centrum.cz>
Thu, 26 Jun 2014 14:51:19 +0000 (16:51 +0200)
ucw/table.c

index 95944f0c23fdb00bc2e1959f10f6288e856fc075..01dfd30dcf2b4d3ba5a355d8c87997bd7a2ac560 100644 (file)
@@ -205,8 +205,10 @@ void table_col_printf(struct table *tbl, int col, const char *fmt, ...)
 static const char *table_col_default_fmts[] = {
   [COL_TYPE_STR] = "%s",
   [COL_TYPE_INT] = "%d",
+  [COL_TYPE_S64] = "%lld",
   [COL_TYPE_INTMAX] = "%jd",
   [COL_TYPE_UINT] = "%u",
+  [COL_TYPE_U64] = "%llu",
   [COL_TYPE_UINTMAX] = "%ju",
   [COL_TYPE_BOOL] = "%d",
   [COL_TYPE_DOUBLE] = "%.2lf",