From 8796299a5adebc431b4e61b37c311a68906ef1e1 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 4 Feb 2007 01:22:00 +0000 Subject: [PATCH] include result of strerror in messages logging errno; turn relay on by default (linux) --- linux/Makefile | 2 +- linux/linuxmain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/Makefile b/linux/Makefile index a08b471a7..e2645a6b5 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -62,7 +62,7 @@ DEFINES += -DFEATURE_TRAY_EDIT # Bluetooth support # DEFINES += -DXWFEATURE_IR DEFINES += -DXWFEATURE_BLUETOOTH -# DEFINES += -DXWFEATURE_RELAY +DEFINES += -DXWFEATURE_RELAY # Let users pick the tiles going into their trays #DEFINES += -DFEATURE_TRAY_EDIT diff --git a/linux/linuxmain.c b/linux/linuxmain.c index e4aa63ced..d885426dc 100644 --- a/linux/linuxmain.c +++ b/linux/linuxmain.c @@ -369,7 +369,7 @@ linux_init_relay_socket( CommonGlobals* cGlobals ) } else { close( sock ); sock = -1; - XP_STATUSF( "connect failed: %d", errno ); + XP_STATUSF( "%s: connect failed: %s (%d)", __func__, strerror(errno), errno ); } }