From 8a166615a49de80234aa14ae4e830b4a3cc9da6d Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Thu, 24 Feb 2022 15:11:39 +0400 Subject: util: remove the net/net.h dependency Move qemu_ether_ntoa() which is only needed in net/. Signed-off-by: Marc-André Lureau Reviewed-by: Richard Henderson Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé --- util/cutils.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'util') diff --git a/util/cutils.c b/util/cutils.c index 53346138c9..0d475ec4cd 100644 --- a/util/cutils.c +++ b/util/cutils.c @@ -27,7 +27,6 @@ #include #include "qemu-common.h" -#include "net/net.h" #include "qemu/ctype.h" #include "qemu/cutils.h" #include "qemu/error-report.h" @@ -936,19 +935,6 @@ int parse_debug_env(const char *name, int max, int initial) return debug; } -/* - * 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"). -- cgit v1.2.3-55-g7522