summaryrefslogtreecommitdiff
path: root/sys/src/cmd/vmx/ksetup.c
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2017-06-27 09:21:30 +0000
committeraiju <devnull@localhost>2017-06-27 09:21:30 +0000
commitdffbc1e45d61bb928ea6a9d0b1206d641daf24fe (patch)
tree8a80a3a2c7e964fc89b8776a6dd8326f545a53dc /sys/src/cmd/vmx/ksetup.c
parentb5a6dc7849cbd9f1fd23183ba46f0d5deb24e81d (diff)
vmx(1): I/O string instructions, incomplete support for IDE disks, misc fixes
Diffstat (limited to 'sys/src/cmd/vmx/ksetup.c')
-rw-r--r--sys/src/cmd/vmx/ksetup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/vmx/ksetup.c b/sys/src/cmd/vmx/ksetup.c
index d3a17e1bc..be0329528 100644
--- a/sys/src/cmd/vmx/ksetup.c
+++ b/sys/src/cmd/vmx/ksetup.c
@@ -244,7 +244,7 @@ elff(uchar **p, uchar *e, int sz)
if(sz == -1)
sz = elf64 ? 8 : 4;
if(*p + sz > e){
- fprint(2, "out of bounds: %p > %p", *p + sz, e);
+ fprint(2, "out of bounds: %#p > %#p", *p + sz, e);
return 0;
}
switch(sz){
@@ -396,12 +396,12 @@ elfdata(void)
}
v = gptr(ph[i].paddr, ph[i].memsz);
if(v == nil)
- sysfatal("invalid address %p (length=%p) in elf", (void*)ph[i].paddr, (void*)ph[i].memsz);
+ sysfatal("invalid address %#p (length=%#p) in elf", (void*)ph[i].paddr, (void*)ph[i].memsz);
if(ph[i].type == PT_OPENBSD_RANDOMIZE)
genrandom(v, ph[i].memsz);
else{
if(ph[i].filesz > ph[i].memsz)
- sysfatal("elf: header entry shorter in memory than in the file (%p < %p)", (void*)ph[i].memsz, (void*)ph[i].filesz);
+ sysfatal("elf: header entry shorter in memory than in the file (%#p < %#p)", (void*)ph[i].memsz, (void*)ph[i].filesz);
if(ph[i].filesz != 0)
epreadn(v, ph[i].filesz, ph[i].offset, "elfdata");
if(ph[i].filesz < ph[i].memsz)