Skip to content

Commit

Permalink
util: debug_print_uuid: always print to stdout
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Bruyelles <[email protected]>
  • Loading branch information
JackSlateur committed Dec 6, 2023
1 parent 9f270da commit 1b1b9fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions file_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */

0 comments on commit 1b1b9fc

Please sign in to comment.