Mercurial > hvf > hvf-old
changeset 594:d566bb8d0f43
installer: be less verbose when dumping files & writing back buffers
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Mon, 05 Dec 2011 19:11:42 -0500 |
parents | 89d5218ceceb |
children | fd819efa68ca |
files | installer/cpio.c installer/edf.c |
diffstat | 2 files changed, 2 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/installer/cpio.c Mon Dec 05 18:42:05 2011 -0500 +++ b/installer/cpio.c Mon Dec 05 19:11:42 2011 -0500 @@ -77,12 +77,8 @@ write_blk(buf, te->lba); } - for(rec=0; rec<(filesize/te->lrecl); rec++) { - snprintf(pbuf, 100, "rec %03x at %p\n", rec, - buf + (rec * te->lrecl)); - wto(pbuf); + for(rec=0; rec<(filesize/te->lrecl); rec++) append_record(&fst, buf + (rec * te->lrecl)); - } if (filesize % te->lrecl) { u8 buf2[te->lrecl]; @@ -90,9 +86,6 @@ memset(buf2, 0, te->lrecl); memcpy(buf2, buf + (rec * te->lrecl), filesize % te->lrecl); - snprintf(pbuf, 100, "rec %03x at %p\n", rec, - buf + (rec * te->lrecl)); - wto(pbuf); append_record(&fst, buf2); } }
--- a/installer/edf.c Mon Dec 05 18:42:05 2011 -0500 +++ b/installer/edf.c Mon Dec 05 19:11:42 2011 -0500 @@ -129,8 +129,8 @@ void writeback_buffers() { struct block_map *cur; - char buf[100]; + wto("beginning buffer write back\n"); list_for_each_entry(cur, &block_map, list) { if (!cur->dirty) continue; @@ -138,8 +138,6 @@ if (!cur->buf) die(); - snprintf(buf, 100, "wb: %10d %p\n", cur->lba, cur->buf); - wto(buf); write_blk(cur->buf, cur->lba); } }