Commit db4a40cb authored by Claes Sjofors's avatar Claes Sjofors

IO nodave log messages modification

parent d63eae97
...@@ -204,7 +204,7 @@ static pwr_tStatus IoRackInit ( ...@@ -204,7 +204,7 @@ static pwr_tStatus IoRackInit (
res = daveInitAdapter( local->di); res = daveInitAdapter( local->di);
if ( res != 0) { if ( res != 0) {
errh_Error( "Nodave PLC, new interface error, %s, %s", daveStrerror(res), rp->Name); errh_Error( "Nodave PLC, new interface error, %s (%d), %s", daveStrerror(res), res, rp->Name);
strncpy( op->Status, daveStrerror(res), sizeof(op->Status)); strncpy( op->Status, daveStrerror(res), sizeof(op->Status));
local->status = IO__ERRINIDEVICE; local->status = IO__ERRINIDEVICE;
return IO__ERRINIDEVICE; return IO__ERRINIDEVICE;
...@@ -214,7 +214,7 @@ static pwr_tStatus IoRackInit ( ...@@ -214,7 +214,7 @@ static pwr_tStatus IoRackInit (
res = daveConnectPLC( local->dc); res = daveConnectPLC( local->dc);
if ( res != 0) { if ( res != 0) {
errh_Error( "Nodave PLC, new interface error, %s, %s", daveStrerror(res), rp->Name); errh_Error( "Nodave PLC, new connection error, %s (%d), %s", daveStrerror(res), res, rp->Name);
strncpy( op->Status, daveStrerror(res), sizeof(op->Status)); strncpy( op->Status, daveStrerror(res), sizeof(op->Status));
local->status = IO__ERRINIDEVICE; local->status = IO__ERRINIDEVICE;
return IO__ERRINIDEVICE; return IO__ERRINIDEVICE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment