aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2025-08-11 21:36:07 +0200
committerThorsten Töpper <atsutane@freethoughts.de>2025-08-11 21:36:07 +0200
commit4904d77cca14c36090cf7a3eb4638fbdeaf28959 (patch)
treec862acd1d18a3c28df4847c426cb6c5e2eef9c94 /src
parent250a82e9c3c55e92fc5d83e78c0fadb9e7ba8b49 (diff)
downloadsmall-utils-4904d77cca14c36090cf7a3eb4638fbdeaf28959.tar.gz
small-utils-4904d77cca14c36090cf7a3eb4638fbdeaf28959.tar.bz2
split_for_sort: add filename to warning
Diffstat (limited to 'src')
-rw-r--r--src/split_for_sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/split_for_sort.c b/src/split_for_sort.c
index e57c2b3..9b05869 100644
--- a/src/split_for_sort.c
+++ b/src/split_for_sort.c
@@ -208,7 +208,7 @@ struct list_head *extend_list(struct list_head *list, size_t splitlength, char *
line[len] = '\0';
if (strncmp(line, previous, splitlength) != 0) {
if (push_into_list_unique(list, line) != 0) {
- LOGERR("WARNING: Failed to insert '%s' into list.\n", line);
+ LOGERR("WARNING: Failed to insert '%s' into list. (file %s)\n", line, fname);
continue;
}
strncpy(previous, line, splitlength);