Skip to content

Commit

Permalink
Problem: debug info needs improvement
Browse files Browse the repository at this point in the history
Solution: added

Signed-off-by: Barbora Stepankova <[email protected]>
  • Loading branch information
bstepankova committed Feb 20, 2018
1 parent 84c10a8 commit 09b286e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/snmp-ups.c
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,6 @@ bool_t daisychain_init()
dstate_setinfo("device.model", "daisychain (1+%ld)", devices_count - 1);
}
}

}
else {
daisychain_enabled = FALSE;
Expand All @@ -2239,8 +2238,9 @@ bool_t daisychain_init()
device_template_offset = device_template_index_base - 1;
upsdebugx(1, "%s: device_template_offset = %i", __func__, device_template_offset);
}


else {
upsdebugx(1, "%s: No device.model entry found.", __func__);
}

return daisychain_enabled;
}
Expand Down

0 comments on commit 09b286e

Please sign in to comment.