Revision 3a8ae21b

b/hw/dma/pl330.c
1157 1157
        if (PL330_ERR_DEBUG > 1) {
1158 1158
            DB_PRINT("PL330 read from memory @%08x (size = %08x):\n",
1159 1159
                      q->addr, len);
1160
            hexdump((char *)buf, stderr, "", len);
1160
            qemu_hexdump((char *)buf, stderr, "", len);
1161 1161
        }
1162 1162
        fifo_res = pl330_fifo_push(&s->fifo, buf, len, q->tag);
1163 1163
        if (fifo_res == PL330_FIFO_OK) {
......
1189 1189
            if (PL330_ERR_DEBUG > 1) {
1190 1190
                DB_PRINT("PL330 read from memory @%08x (size = %08x):\n",
1191 1191
                         q->addr, len);
1192
                hexdump((char *)buf, stderr, "", len);
1192
                qemu_hexdump((char *)buf, stderr, "", len);
1193 1193
            }
1194 1194
            if (q->inc) {
1195 1195
                q->addr += len;
b/include/qemu-common.h
443 443
 * Hexdump a buffer to a file. An optional string prefix is added to every line
444 444
 */
445 445

  
446
void hexdump(const char *buf, FILE *fp, const char *prefix, size_t size);
446
void qemu_hexdump(const char *buf, FILE *fp, const char *prefix, size_t size);
447 447

  
448 448
/* vector definitions */
449 449
#ifdef __ALTIVEC__
b/util/hexdump.c
15 15

  
16 16
#include "qemu-common.h"
17 17

  
18
void hexdump(const char *buf, FILE *fp, const char *prefix, size_t size)
18
void qemu_hexdump(const char *buf, FILE *fp, const char *prefix, size_t size)
19 19
{
20 20
    unsigned int b;
21 21

  
b/util/iov.c
225 225
    size = size > limit ? limit : size;
226 226
    buf = g_malloc(size);
227 227
    iov_to_buf(iov, iov_cnt, 0, buf, size);
228
    hexdump(buf, fp, prefix, size);
228
    qemu_hexdump(buf, fp, prefix, size);
229 229
    g_free(buf);
230 230
}
231 231

  

Also available in: Unified diff