commit | 3abcdf4904d695a9501d7886aa0d243cf086c087 | [log] [tgz] |
---|---|---|
author | Stefan Weil <weil@mail.berlios.de> | Sun Jun 21 18:35:03 2009 +0200 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Wed Jun 24 09:09:15 2009 -0500 |
tree | e28b4576833d8658b6ead691f143aa6a6835f735 | |
parent | ffe6370c9f2a596814bf14e472910fe6ef7e001d [diff] |
Fix dump output in qemu-io. The dump output was not nicely formatted for bytes larger than 0x7f, because signed values expanded to sizeof(int) bytes. So for example 0xab did not print as "ab", but as "ffffffab". I also cleaned the function prototype, which avoids new type casts and allows to remove an existing type cast. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>