]> git.proxmox.com Git - qemu.git/commitdiff
Rename hexdump to avoid FreeBSD libutil conflict
authorEd Maste <emaste@freebsd.org>
Thu, 16 May 2013 15:32:28 +0000 (11:32 -0400)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 20 May 2013 13:20:08 +0000 (08:20 -0500)
On FreeBSD libutil is used for openpty(), but it also provides a hexdump()
which conflicts with QEMU's.

Signed-off-by: Ed Maste <emaste@freebsd.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1368718348-15199-1-git-send-email-emaste@freebsd.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/dma/pl330.c
include/qemu-common.h
util/hexdump.c
util/iov.c

index 8b33138f30f77253095be8d02c57047f088c9609..60f5299e1090cf0c83c8b6ca508ce090cbcbc8fc 100644 (file)
@@ -1157,7 +1157,7 @@ static int pl330_exec_cycle(PL330Chan *channel)
         if (PL330_ERR_DEBUG > 1) {
             DB_PRINT("PL330 read from memory @%08x (size = %08x):\n",
                       q->addr, len);
-            hexdump((char *)buf, stderr, "", len);
+            qemu_hexdump((char *)buf, stderr, "", len);
         }
         fifo_res = pl330_fifo_push(&s->fifo, buf, len, q->tag);
         if (fifo_res == PL330_FIFO_OK) {
@@ -1189,7 +1189,7 @@ static int pl330_exec_cycle(PL330Chan *channel)
             if (PL330_ERR_DEBUG > 1) {
                 DB_PRINT("PL330 read from memory @%08x (size = %08x):\n",
                          q->addr, len);
-                hexdump((char *)buf, stderr, "", len);
+                qemu_hexdump((char *)buf, stderr, "", len);
             }
             if (q->inc) {
                 q->addr += len;
index 7f18b8e1f9e5eed3c6c9530ddf99c7b56ef6129f..b9057d18cfd8a4d697f056b40d4ac6266b5d8c10 100644 (file)
@@ -443,7 +443,7 @@ int mod_utf8_codepoint(const char *s, size_t n, char **end);
  * Hexdump a buffer to a file. An optional string prefix is added to every line
  */
 
-void hexdump(const char *buf, FILE *fp, const char *prefix, size_t size);
+void qemu_hexdump(const char *buf, FILE *fp, const char *prefix, size_t size);
 
 /* vector definitions */
 #ifdef __ALTIVEC__
index 0d0efc86dec647203c85ab9fcbbab38f3c83ebd2..969b3406c07b20fcf014aead3b140b1a0fa7b33f 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "qemu-common.h"
 
-void hexdump(const char *buf, FILE *fp, const char *prefix, size_t size)
+void qemu_hexdump(const char *buf, FILE *fp, const char *prefix, size_t size)
 {
     unsigned int b;
 
index 78bbbe12d01330500611a9a8a42a65c94f33f099..cc6e837c8368f81938bf98179d6c6328b5ed170d 100644 (file)
@@ -225,7 +225,7 @@ void iov_hexdump(const struct iovec *iov, const unsigned int iov_cnt,
     size = size > limit ? limit : size;
     buf = g_malloc(size);
     iov_to_buf(iov, iov_cnt, 0, buf, size);
-    hexdump(buf, fp, prefix, size);
+    qemu_hexdump(buf, fp, prefix, size);
     g_free(buf);
 }