aboutsummaryrefslogtreecommitdiffstats
path: root/modbuslog.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2011-10-15 16:21:02 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2011-10-15 16:21:02 +0100
commitd0726dfb75459f99ad946fcdc8cc657c19af7431 (patch)
tree74ccc308249ef1de7099c93e9165fb44d761aa04 /modbuslog.c
parenta2b89c88185d680051076e9b341c8b8f6cf5b25d (diff)
downloadverteco-d0726dfb75459f99ad946fcdc8cc657c19af7431.tar.gz
working towards logging.
Diffstat (limited to 'modbuslog.c')
-rw-r--r--modbuslog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/modbuslog.c b/modbuslog.c
index a73dd94..0649215 100644
--- a/modbuslog.c
+++ b/modbuslog.c
@@ -84,12 +84,11 @@ modbus_set_slave(ctx, SLAVE_ID);
modbus_set_debug(ctx, DEBUG);
if (ctx == NULL) {
- fprintf(stderr, "Unable to create the libmodbus context\n");
+ fprintf(stderr, "Unable to create libmodbus object.\n");
return -1;
}
-
if (modbus_connect(ctx) == -1) {
fprintf(stderr, "Connection failed: %s\n", modbus_strerror(errno));
modbus_free(ctx);