aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-07 01:57:14 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-07 01:57:14 +0000
commit58bba2bc1f7da50109467a5ffd233b94623deac5 (patch)
tree5f123278942e6edf4a6b59bbe9d335b6cade914f
parent0899cdf214538a3d3c56adca1723469c0a14f403 (diff)
downloadverteco-58bba2bc1f7da50109467a5ffd233b94623deac5.tar.gz
Made logs more 'English'
-rw-r--r--src/modbuslog.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modbuslog.c b/src/modbuslog.c
index b7d8bf6..27b7e5a 100644
--- a/src/modbuslog.c
+++ b/src/modbuslog.c
@@ -130,9 +130,10 @@ int main(int argc, char *argv[]) {
return -1;
}
- syslog(LOG_INFO, "%s %s %d %d %c %d", mac_address(), modbus_device_address,
- modbus_baud_rate, modbus_data_bits, modbus_parity[0],
- modbus_stop_bits);
+ syslog(LOG_INFO, "MAC=[%s]", mac_address());
+ syslog(LOG_INFO, "Serial Port=[%s]");
+ syslog(LOG_INFO, "Serial Port Parameters=[%d %d %c %d]", modbus_baud_rate,
+ modbus_data_bits, modbus_parity[0], modbus_stop_bits);
modbus_t *ctx;
uint16_t tab_reg[4];