Skip to content

Commit f111f5e

Browse files
committed
update format specifier type
1 parent ae495f4 commit f111f5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net/packet_debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace net {
3939
fprintf(stderr, "Buffer: Begin: %p End: %p Size: %i\n",
4040
pkt->buf(), pkt->buffer_end(), pkt->bufsize());
4141
const size_t offset = pkt->layer_begin() - layer_begin;
42-
fprintf(stderr, "Layer: Recorded: %p Current: %p (%lub offset)\n",
42+
fprintf(stderr, "Layer: Recorded: %p Current: %p (%zub offset)\n",
4343
layer_begin, pkt->layer_begin(), offset);
4444
fprintf(stderr, "Size: %i ", pkt->size());
4545
fprintf(stderr, "Capacity: %i ", pkt->capacity());

src/platform/x86_pc/idt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ void __page_fault(uintptr_t* regs, uint32_t code) {
276276
if (not(code & 1))
277277
reason = "Page not present";
278278

279-
fprintf(stderr,"%s, trying to access 0x%lx\n", reason, addr);
279+
fprintf(stderr,"%s, trying to access %p\n", reason, (void*)addr);
280280

281281
if (code & 2)
282282
fprintf(stderr,"Page write failed.\n");

0 commit comments

Comments
 (0)