summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2021-10-13 21:14:11 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2021-10-13 22:27:22 +0200
commitf9a9024159c16f376e6150883cab926f35bb986d (patch)
tree339469c2175fd96569d9dc02cbe88f21c6857fd0 /tests
parent2f88b7788d100b58a5f817d0678897d10a0fd979 (diff)
downloadlibgphoto2-f9a9024159c16f376e6150883cab926f35bb986d.tar.gz
test-camera-list: Widen column for 4 digit number of camlibs
As the number of cameras in the list is about 2800 right now, widening the column from 3 to 4 digits makes sense.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-camera-list.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test-camera-list.c b/tests/test-camera-list.c
index dc24a93c8..c28b2a87e 100644
--- a/tests/test-camera-list.c
+++ b/tests/test-camera-list.c
@@ -73,7 +73,8 @@ debug_func (GPLogLevel level, const char *domain, const char *str,
static void
print_headline (void)
{
- printf("No.|%-20s|%-20s|%s\n",
+ printf("%-4s|%-20s|%-20s|%s\n",
+ "No.",
"camlib",
"driver name",
"camera model");
@@ -83,7 +84,8 @@ print_headline (void)
static void
print_hline (void)
{
- printf("---+%-20s+%-20s+%s\n",
+ printf("%-4s+%-20s+%-20s+%s\n",
+ "----",
"--------------------",
"--------------------",
"-------------------------------------------");
@@ -245,10 +247,10 @@ main (int argc, char *argv[])
fmt_str = "%d,%s,%s,%s\n";
break;
case FMT_FLAT_TEXT:
- fmt_str = "%3d|%-20s|%-20s|%s\n";
+ fmt_str = "%4d|%-20s|%-20s|%s\n";
break;
case FMT_HEADED_TEXT:
- fmt_str = "%3d|%-20s|%-20s|%s\n";
+ fmt_str = "%4d|%-20s|%-20s|%s\n";
break;
case FMT_XML:
fmt_str = " <camera name=\"%4$s\" entry_number=\"%1$d\">\n"