Mercurial > hg > dmlib
comparison tools/64vw.c @ 2631:1f0aecb1017c
Re-adjust -l option output.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 30 Nov 2023 02:16:55 +0200 |
parents | 1b62395e2bb7 |
children |
comparison
equal
deleted
inserted
replaced
2630:ca617d635fce | 2631:1f0aecb1017c |
---|---|
337 DMC64Image *cimage = NULL; | 337 DMC64Image *cimage = NULL; |
338 | 338 |
339 res = dmReadC64Image(filename, forced, &fmt, &cimage); | 339 res = dmReadC64Image(filename, forced, &fmt, &cimage); |
340 if (optListOnly) | 340 if (optListOnly) |
341 { | 341 { |
342 fprintf(stdout, "%s | ", filename); | 342 fprintf(stdout, "%s | %s | %s", |
343 filename, | |
344 fmt != NULL ? fmt->name : "UNKNOWN", | |
345 fmt != NULL ? fmt->fext : "???"); | |
346 | |
343 if (res == DMERR_OK || res == DMERR_NOT_SUPPORTED) | 347 if (res == DMERR_OK || res == DMERR_NOT_SUPPORTED) |
344 { | 348 { |
345 fprintf(stdout, "%s [%s]\n", | 349 fprintf(stdout, "\n"); |
346 fmt != NULL ? fmt->name : "UNKNOWN", | |
347 fmt != NULL ? fmt->fext : "???"); | |
348 } | 350 } |
349 else | 351 else |
350 { | 352 { |
351 fprintf(stdout, "ERROR: %s\n", | 353 fprintf(stdout, " | ERROR: %s\n", |
352 dmErrorStr(res)); | 354 dmErrorStr(res)); |
353 } | 355 } |
354 } | 356 } |
355 else | 357 else |
356 { | 358 { |