# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1360162680 -3600
# Node ID 4ccf7634e664ea5b64e13dd9fabfea4640c21f2a
# Parent  ab9a6e109951ddbaf25ccf96ab4ddad56bbebf53
Fixed annoying fprintf in ecrt_slave_config_emerg_pop().

diff -r ab9a6e109951 -r 4ccf7634e664 lib/slave_config.c
--- a/lib/slave_config.c	Tue Feb 05 17:08:33 2013 +0100
+++ b/lib/slave_config.c	Wed Feb 06 15:58:00 2013 +0100
@@ -482,8 +482,10 @@
 
     ret = ioctl(sc->master->fd, EC_IOCTL_SC_EMERG_POP, &io);
     if (EC_IOCTL_IS_ERROR(ret)) {
-        fprintf(stderr, "Failed to get emergency message: %s\n",
-                strerror(EC_IOCTL_ERRNO(ret)));
+        if (EC_IOCTL_ERRNO(ret) != ENOENT) {
+            fprintf(stderr, "Failed to get emergency message: %s\n",
+                    strerror(EC_IOCTL_ERRNO(ret)));
+        }
         return -EC_IOCTL_ERRNO(ret);
     }