lorid

convert chordpro to pdf
git clone git://git.relim.de/lorid.git
Log | Files | Refs | README | LICENSE

commit 85c18bb7a27e89e81540859ae616e80e2544bad3
parent 5262593690217c8b6e06fe3537184ff48dc78ffd
Author: nibo <nibo@relim.de>
Date:   Wed,  9 Oct 2024 18:17:03 +0200

Improve logging

Diffstat:
Mchordpro.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/chordpro.c b/chordpro.c @@ -2037,7 +2037,7 @@ static struct ChoImage *cho_image_directive_parse(const char *str) break; } else { name[n] = 0; - fprintf(stderr, "ERR: Option with name '%s' in image directive has no value, line '%ld'.\n", name, g_line_number); + cho_log(LOG_ERR, "Option with name '%s' in image directive has no value.", name); return NULL; } } @@ -2049,7 +2049,7 @@ static struct ChoImage *cho_image_directive_parse(const char *str) break; } if (n > 5) { - fprintf(stderr, "ERR: Option name in image directive is too long, line '%ld'.\n", g_line_number); + cho_log(LOG_ERR, "Option name in image directive is too long."); return NULL; } name[n] = c; @@ -3219,9 +3219,6 @@ struct ChoSong **cho_songs_parse(FILE *fp, const char *chordpro_filepath, struct LOG_DEBUG("fread failed."); return NULL; } - /* if (buf == '\n') { - g_line_number++; - } */ } int e = 0; while (e <= ta) {