trace_processor: fix max column width in shell

Change-Id: I341e04340ac710184f0dd9ef730e22b487f0f5c6
diff --git a/src/trace_processor/trace_processor_shell.cc b/src/trace_processor/trace_processor_shell.cc
index 3d9f827..479169c 100644
--- a/src/trace_processor/trace_processor_shell.cc
+++ b/src/trace_processor/trace_processor_shell.cc
@@ -375,7 +375,8 @@
         t_end = base::GetWallTimeNs();
       }
       for (uint32_t i = 0; i < it->ColumnCount(); i++)
-        printf("%-*s ", column_width, it->GetColumName(i).c_str());
+        printf("%-*.*s ", column_width, column_width,
+               it->GetColumName(i).c_str());
       printf("\n");
 
       std::string divider(column_width, '-');
@@ -398,7 +399,7 @@
           printf("%*" PRIi64, column_width, value.long_value);
           break;
         case SqlValue::Type::kString:
-          printf("%-*s", column_width, value.string_value);
+          printf("%-*.*s", column_width, column_width, value.string_value);
           break;
         case SqlValue::Type::kBytes:
           printf("%-*s", column_width, "<raw bytes>");