diff --git a/file_scan.c b/file_scan.c index 7b71e09c9a50..ce27ab9907d4 100644 --- a/file_scan.c +++ b/file_scan.c @@ -401,9 +401,9 @@ bool check_file(struct dbhandle *db, char *path, struct statx *st, bool parent_c if (uuid_compare(uuid, locked_fs.uuid) != 0) { fprintf(stderr, "%s lives on fs ", path); - debug_print_uuid(stderr, uuid); + debug_print_uuid(uuid); fprintf(stderr, " will we are locked on fs "); - debug_print_uuid(stderr, locked_fs.uuid); + debug_print_uuid(locked_fs.uuid); fprintf(stderr, ".\n"); return false; } diff --git a/util.c b/util.c index 214d139d9c70..b011c5c7ddbf 100644 --- a/util.c +++ b/util.c @@ -333,9 +333,9 @@ int increase_limits(void) { return 0; } -void debug_print_uuid(FILE *stream, uuid_t uuid) +void debug_print_uuid(uuid_t uuid) { char buf[37]; uuid_unparse(uuid, buf); - fputs(buf, stream); + puts(buf); } diff --git a/util.h b/util.h index 4f35655a2bf5..d7a0f7d452d7 100644 --- a/util.h +++ b/util.h @@ -78,6 +78,6 @@ static inline void closefd(int *fd) close(*fd); } -void debug_print_uuid(FILE *stream, uuid_t uuid); +void debug_print_uuid(uuid_t uuid); #endif /* __UTIL_H__ */