summaryrefslogtreecommitdiff
path: root/src/user/app/shell/builtins.c
diff options
context:
space:
mode:
authordzwdz2023-02-23 18:31:23 +0100
committerdzwdz2023-02-23 18:31:23 +0100
commit55224307bf9b3e4231daca9ad4c4e3b6d734869b (patch)
tree18e0e3cc897efe60c96d3ee2ed02cb60a4571611 /src/user/app/shell/builtins.c
parentc9daa8909313b020df57605d0bd50ac48b208d58 (diff)
fix: printf related warnings
Diffstat (limited to 'src/user/app/shell/builtins.c')
-rw-r--r--src/user/app/shell/builtins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/app/shell/builtins.c b/src/user/app/shell/builtins.c
index e0f848e..734370b 100644
--- a/src/user/app/shell/builtins.c
+++ b/src/user/app/shell/builtins.c
@@ -125,7 +125,7 @@ void cmd_hexdump(int argc, char **argv) {
}
continue;
} else skipped = false;
- printf("%08x ", pos + i);
+ printf("%08zx ", pos + i);
for (size_t j = i; j < i + 8 && j < len; j++)
printf("%02x ", buf[j]);
@@ -148,7 +148,7 @@ void cmd_hexdump(int argc, char **argv) {
}
pos += len;
}
- printf("%08x\n", pos);
+ printf("%08zx\n", pos);
fclose(file);
}
}