aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/modbuslog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modbuslog.c b/src/modbuslog.c
index 51895ac..abb2002 100644
--- a/src/modbuslog.c
+++ b/src/modbuslog.c
@@ -226,7 +226,10 @@ int main(int argc, char *argv[]) {
modbus_strerror(errno));
modbus_free(ctx);
// if connection fails, skip rest of loop
- syslog(LOG_ERR, "Skipping read from [%i,%i]", slaveid, startaddress);
+ syslog(
+ LOG_ERR,
+ "Skipping read from slaveid=[%i], registertype=[%i], startaddress=[%i], numregisters=[%i]",
+ slaveid, registertype, startaddress, numregisters);
break;
}