summaryrefslogtreecommitdiffstats
path: root/src/collectors/log2journal/log2journal-rename.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:33:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:34:10 +0000
commit83ba6762cc43d9db581b979bb5e3445669e46cc2 (patch)
tree2e69833b43f791ed253a7a20318b767ebe56cdb8 /src/collectors/log2journal/log2journal-rename.c
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.tar.xz
netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.zip
Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/collectors/log2journal/log2journal-rename.c')
-rw-r--r--src/collectors/log2journal/log2journal-rename.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/collectors/log2journal/log2journal-rename.c b/src/collectors/log2journal/log2journal-rename.c
index c6975779f..11b3d2178 100644
--- a/src/collectors/log2journal/log2journal-rename.c
+++ b/src/collectors/log2journal/log2journal-rename.c
@@ -9,13 +9,13 @@ void rename_cleanup(RENAME *rn) {
bool log_job_rename_add(LOG_JOB *jb, const char *new_key, size_t new_key_len, const char *old_key, size_t old_key_len) {
if(jb->renames.used >= MAX_RENAMES) {
- log2stderr("Error: too many renames. You can rename up to %d fields.", MAX_RENAMES);
+ l2j_log("Error: too many renames. You can rename up to %d fields.", MAX_RENAMES);
return false;
}
RENAME *rn = &jb->renames.array[jb->renames.used++];
- hashed_key_len_set(&rn->new_key, new_key, new_key_len);
- hashed_key_len_set(&rn->old_key, old_key, old_key_len);
+ hashed_key_set(&rn->new_key, new_key, new_key_len);
+ hashed_key_set(&rn->old_key, old_key, old_key_len);
return true;
}