Patchwork [2/3] net: inet_strfamily(): Better unknown family report

login
register
mail settings
Submitter Luiz Capitulino
Date Jan. 20, 2010, 1:42 p.m.
Message ID <1263994960-8411-3-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/43282/
State New
Headers show

Comments

Luiz Capitulino - Jan. 20, 2010, 1:42 p.m.
Returning "????" is a bit meaningless, let's call it "unknown".

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 qemu-sockets.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/qemu-sockets.c b/qemu-sockets.c
index 720de22..d912fed 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -98,7 +98,7 @@  const char *inet_strfamily(int family)
     case PF_INET:  return "ipv4";
     case PF_UNIX:  return "unix";
     }
-    return "????";
+    return "unknown";
 }
 
 static void inet_print_addrinfo(const char *tag, struct addrinfo *res)