aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-02-24 15:11:39 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-03-22 14:46:17 +0400
commit8a166615a49de80234aa14ae4e830b4a3cc9da6d (patch)
treed833929323838dc8fc65347f1e540ecb46e1e4a8 /util
parent5933dd9576e9be2053598f4fad88f2406d72a85c (diff)
downloadqemu-8a166615a49de80234aa14ae4e830b4a3cc9da6d.zip
qemu-8a166615a49de80234aa14ae4e830b4a3cc9da6d.tar.gz
qemu-8a166615a49de80234aa14ae4e830b4a3cc9da6d.tar.bz2
util: remove the net/net.h dependency
Move qemu_ether_ntoa() which is only needed in net/. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'util')
-rw-r--r--util/cutils.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/util/cutils.c b/util/cutils.c
index 5334613..0d475ec 100644
--- a/util/cutils.c
+++ b/util/cutils.c
@@ -27,7 +27,6 @@
#include <math.h>
#include "qemu-common.h"
-#include "net/net.h"
#include "qemu/ctype.h"
#include "qemu/cutils.h"
#include "qemu/error-report.h"
@@ -937,19 +936,6 @@ int parse_debug_env(const char *name, int max, int initial)
}
/*
- * Helper to print ethernet mac address
- */
-const char *qemu_ether_ntoa(const MACAddr *mac)
-{
- static char ret[18];
-
- snprintf(ret, sizeof(ret), "%02x:%02x:%02x:%02x:%02x:%02x",
- mac->a[0], mac->a[1], mac->a[2], mac->a[3], mac->a[4], mac->a[5]);
-
- return ret;
-}
-
-/*
* Return human readable string for size @val.
* @val can be anything that uint64_t allows (no more than "16 EiB").
* Use IEC binary units like KiB, MiB, and so forth.