summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-08-18 14:53:28 +0200
committerHelge Deller <deller@gmx.de>2017-08-18 14:53:28 +0200
commit99e5142e4dc23f1dfa8ce4846fa9c2bb538617ac (patch)
treee901f631571510a1fd7fad759d71e90f73ddb09a
parentf9e3fe109fa0bdfdaddbf35d82142a8763ecf53a (diff)
downloadpalo-99e5142e4dc23f1dfa8ce4846fa9c2bb538617ac.tar.gz
Reduce debug output
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--ipl/byteio.c6
-rw-r--r--ipl/pdc_bootio.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/ipl/byteio.c b/ipl/byteio.c
index 2d93744..ce1e597 100644
--- a/ipl/byteio.c
+++ b/ipl/byteio.c
@@ -57,7 +57,7 @@ delivercache(struct bs *b, char **buf, unsigned *devaddr, unsigned endaddr)
/* copy into user's buffer */
memcpy(*buf, b->readbuf + offset, n);
- if (Debug) printf("delivercache: %d bytes from devaddr 0x%x to 0x%p\r\n",
+ if (0 && Debug) printf("delivercache: %d bytes from devaddr 0x%x to 0x%p\r\n",
n, *devaddr, *buf);
*devaddr += n;
@@ -81,7 +81,7 @@ cacheblock(struct bs *b, unsigned devaddr)
return 0;
}
b->devoffset = block;
- if (Debug) printf("cacheblock: cached block at devaddr 0x%x\r\n", devaddr);
+ if (0 && Debug) printf("cacheblock: cached block at devaddr 0x%x\r\n", devaddr);
return 1;
}
@@ -99,7 +99,7 @@ static int byteio_read(int fd, char *buf, unsigned count, unsigned devaddr)
int n, bigread;
char *alignedbuf;
- if (Debug) printf("b_r: buf:0x%p devaddr 0x%x %s endaddr 0x%x\r\n",
+ if (0 && Debug) printf("b_r: buf:0x%p devaddr 0x%x %s endaddr 0x%x\r\n",
buf, devaddr,
(devaddr & (b->blocksize - 1)) == 0 ? "aligned" : "unaligned",
endaddr);
diff --git a/ipl/pdc_bootio.c b/ipl/pdc_bootio.c
index 52fe1de..e527c5e 100644
--- a/ipl/pdc_bootio.c
+++ b/ipl/pdc_bootio.c
@@ -23,7 +23,7 @@ static int pdc_bootdev_read(int fd,
int nbytes = 0;
static unsigned devaddr = 0;
- if (Debug) printf("pdc_bootdev_read(fd:%d, dest:0x%p, n:%u, seek:0x%x) 0x%x\n",
+ if (0 && Debug) printf("pdc_bootdev_read(fd:%d, dest:0x%p, n:%u, seek:0x%x) 0x%x\n",
fd, dest, n, seek, devaddr);
if ((unsigned int)dest & 0x3f) {