Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser If binding fails, print URL with which it fa...



details:   https://anonhg.NetBSD.org/src/rev/2c89f514063b
branches:  trunk
changeset: 806119:2c89f514063b
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Feb 04 12:55:47 2015 +0000

description:
If binding fails, print URL with which it failed.

diffstat:

 lib/librumpuser/rumpuser_sp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r eb3b75e1ac27 -r 2c89f514063b lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c     Wed Feb 04 12:48:05 2015 +0000
+++ b/lib/librumpuser/rumpuser_sp.c     Wed Feb 04 12:55:47 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_sp.c,v 1.68 2014/12/08 00:12:03 justin Exp $ */
+/*      $NetBSD: rumpuser_sp.c,v 1.69 2015/02/04 12:55:47 pooka Exp $  */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -37,7 +37,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_sp.c,v 1.68 2014/12/08 00:12:03 justin Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.69 2015/02/04 12:55:47 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -1362,7 +1362,7 @@
        /*LINTED*/
        if (bind(s, sap, parsetab[idx].slen) == -1) {
                error = errno;
-               fprintf(stderr, "rump_sp: server bind failed\n");
+               fprintf(stderr, "rump_sp: failed to bind to URL %s\n", url);
                goto out;
        }
        if (listen(s, MAXCLI) == -1) {



Home | Main Index | Thread Index | Old Index