Mercurial > hg > sidinfo
changeset 269:cea4a7df9efd
Rename siError() to siPSIDError() and make the printed output more logical.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 06 Jan 2020 01:01:02 +0200 |
parents | 6312d33d1361 |
children | 7c78ec8f6abd |
files | sidinfo.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)