Skip to content

Commit 8b08a68

Browse files
committed
inode: init: improve debug message format
1 parent d37f215 commit 8b08a68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/inode.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -924,16 +924,16 @@ static int zdbfs_header_check(uint8_t *buffer, size_t bufsize, char *magic) {
924924
memcpy(&source.version, buffer + sizeof(source.magic), sizeof(source.version));
925925

926926
if(strncmp(source.magic, magic, strlen(magic)) != 0) {
927-
printf(">> invalid magic [%*s / %s]\n", (int) sizeof(source.magic), source.magic, magic);
927+
zdbfs_critical("header: invalid magic [%*s / %s]", (int) sizeof(source.magic), source.magic, magic);
928928
return 1;
929929
}
930930

931931
if(source.version != ZDBFS_INTERNAL_VERSION) {
932-
printf(">> unexpected version from header [%u / %u]\n", source.version, ZDBFS_INTERNAL_VERSION);
932+
zdbfs_critical("unexpected version from header [%u / %u]\n", source.version, ZDBFS_INTERNAL_VERSION);
933933
return 1;
934934
}
935935

936-
printf("<< header basic valid\n");
936+
zdbfs_debug("[+] filesystem: header: basic information valid\n");
937937

938938
return 0;
939939
}
@@ -990,7 +990,7 @@ int zdbfs_inode_init(zdbfs_t *fs) {
990990

991991
// we only check for metadata in use flag
992992
if(header.flags & ZDBFS_FLAGS_IN_USE) {
993-
printf(">> filesystem already in use !\n");
993+
zdbfs_debug("[-] filesystem: flag already in use set (ignore for now)\n");
994994
return 1;
995995
}
996996

0 commit comments

Comments
 (0)