mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
all: add line number to log output
This commit is contained in:
parent
852caab209
commit
fbed71ce3e
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@
|
||||||
#endif /* defined(BOOKMARKFS_DEBUG) */
|
#endif /* defined(BOOKMARKFS_DEBUG) */
|
||||||
|
|
||||||
#define log_printf(f, ...) \
|
#define log_printf(f, ...) \
|
||||||
fprintf(stderr, "%s: " f "\n", FILE_NAME_, __VA_ARGS__)
|
fprintf(stderr, "%s:%d: " f "\n", FILE_NAME_, __LINE__, __VA_ARGS__)
|
||||||
#define log_puts(s) log_printf("%s", s)
|
#define log_puts(s) log_printf("%s", s)
|
||||||
|
|
||||||
#ifdef BOOKMARKFS_DEBUG
|
#ifdef BOOKMARKFS_DEBUG
|
||||||
|
|
Loading…
Add table
Reference in a new issue