X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/a4c58d92bfee0cf2e35ab1c5e828a6d790108a69..e4ddc8f72b5a7d8c55a6c2042c7b7f945ba4b1a2:/ui-tree.c diff --git a/ui-tree.c b/ui-tree.c index 75ec9cb..0cdbf6d 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -67,7 +67,7 @@ static void print_binary_buffer(char *buf, unsigned long size) html("
| ofs | hex dump | ascii |
|---|---|---|
| %04x | ", ofs); + htmlf(" | |
| %04lx | ", ofs);
for (idx = 0; idx < ROWLEN && ofs + idx < size; idx++)
htmlf("%*s%02x",
idx == 16 ? 4 : 1, "",
@@ -108,7 +108,7 @@ static void print_object(const unsigned char *sha1, char *path, const char *base
html(")\n");
if (ctx.cfg.max_blob_size && size / 1024 > ctx.cfg.max_blob_size) {
- htmlf(" blob size (%dKB) exceeds display size limit (%dKB). ",
+ htmlf("blob size (%ldKB) exceeds display size limit (%dKB). ",
size / 1024, ctx.cfg.max_blob_size);
return;
}
|