diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-10-19 22:01:13 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-10-19 22:01:13 +0200 |
commit | d6ea4969607d9d6b33ae5a40a947f8a2aa2c0845 (patch) | |
tree | 50f7d91307a2f45aeff3d752003da6816f5d66f4 /sys/src/boot/efi/sub.c | |
parent | f0ff0fb0544841d73bc29872d8e2fb4a6a8a5e06 (diff) |
efi: fix compiler warnings, remove indicator prints in readn()
Diffstat (limited to 'sys/src/boot/efi/sub.c')
-rw-r--r-- | sys/src/boot/efi/sub.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/src/boot/efi/sub.c b/sys/src/boot/efi/sub.c index ee951bd9f..29be948b1 100644 --- a/sys/src/boot/efi/sub.c +++ b/sys/src/boot/efi/sub.c @@ -20,19 +20,13 @@ readn(void *f, void *data, int len) { uchar *p, *e; - putc(' '); p = data; e = p + len; while(p < e){ - if(((ulong)p & 0xF000) == 0){ - putc('\b'); - putc(hex[((ulong)p>>16)&0xF]); - } if((len = read(f, p, e - p)) <= 0) break; p += len; } - putc('\b'); return p - (uchar*)data; } @@ -362,13 +356,13 @@ bootkern(void *f) if(readn(f, t, n) != n) goto Error; t += n; - d = (uchar*)PGROUND((ulong)t); + d = (uchar*)PGROUND((uintptr)t); memset(t, 0, d - t); n = beswal(ex.data); if(readn(f, d, n) != n) goto Error; d += n; - t = (uchar*)PGROUND((ulong)d); + t = (uchar*)PGROUND((uintptr)d); t += PGROUND(beswal(ex.bss)); memset(d, 0, t - d); |