# HG changeset patch # User Matti Hamalainen # Date 1578265262 -7200 # Node ID cea4a7df9efd993468e9e5cf77efc2febca39d9a # Parent 6312d33d13614474f9ecd6f32625c333f5e00ba4 Rename siError() to siPSIDError() and make the printed output more logical. diff -r 6312d33d1361 -r cea4a7df9efd sidinfo.c --- a/sidinfo.c Mon Jan 06 00:59:35 2020 +0200 +++ b/sidinfo.c Mon Jan 06 01:01:02 2020 +0200 @@ -1046,11 +1046,10 @@ } -void siError(th_ioctx *fh, const int err, const char *msg) +void siPSIDError(th_ioctx *fh, const int err, const char *msg) { - (void) fh; (void) err; - fprintf(stderr, "%s", msg); + THERR("%s - %s\n", msg, fh->filename); } @@ -1071,7 +1070,7 @@ goto error; } - th_io_set_handlers(inFile, siError, NULL); + th_io_set_handlers(inFile, siPSIDError, NULL); // Read PSID data if ((res = sidlib_read_sid_file_alloc(inFile, &psid, setSLDBNewFormat)) != THERR_OK)