Skip to content

Commit 847cdb2

Browse files
committed
Fix format specifiers
1 parent 795a9f9 commit 847cdb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/config.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ flog_config_set_subsystem(FlogConfig *config, const char *subsystem) {
205205
assert(subsystem != NULL);
206206

207207
if (strlcpy(config->subsystem, subsystem, subsystem_len) >= subsystem_len) {
208-
fprintf(stderr, "%s: subsystem name truncated to %lu bytes\n", PROGRAM_NAME, subsystem_len - 1);
208+
fprintf(stderr, "%s: subsystem name truncated to %zu bytes\n", PROGRAM_NAME, subsystem_len - 1);
209209
}
210210
}
211211

@@ -222,7 +222,7 @@ flog_config_set_category(FlogConfig *config, const char *category) {
222222
assert(category != NULL);
223223

224224
if (strlcpy(config->category, category, category_len) >= category_len) {
225-
fprintf(stderr, "%s: category name truncated to %lu bytes\n", PROGRAM_NAME, category_len - 1);
225+
fprintf(stderr, "%s: category name truncated to %zu bytes\n", PROGRAM_NAME, category_len - 1);
226226
}
227227
}
228228

@@ -293,7 +293,7 @@ flog_config_set_message(FlogConfig *config, const char *message) {
293293
assert(message != NULL);
294294

295295
if (strlcpy(config->message, message, message_len) >= message_len) {
296-
fprintf(stderr, "%s: message truncated to %lu bytes\n", PROGRAM_NAME, message_len - 1);
296+
fprintf(stderr, "%s: message truncated to %zu bytes\n", PROGRAM_NAME, message_len - 1);
297297
}
298298
}
299299

@@ -320,7 +320,7 @@ flog_config_set_message_from_args(FlogConfig *config, const char **args) {
320320
}
321321

322322
if (message_truncated) {
323-
fprintf(stderr, "%s: message truncated to %lu bytes\n", PROGRAM_NAME, message_len - 1);
323+
fprintf(stderr, "%s: message truncated to %zu bytes\n", PROGRAM_NAME, message_len - 1);
324324
}
325325
}
326326

0 commit comments

Comments
 (0)