Commit ef539e0d40df7ce22ec4501339b8629b83f0e447
1 parent
c1c119ae
Fix missing %s to display error message in unit-test-server.c
Showing
1 changed file
with
1 additions
and
1 deletions
tests/unit-test-server.c
| @@ -97,7 +97,7 @@ int main(int argc, char*argv[]) | @@ -97,7 +97,7 @@ int main(int argc, char*argv[]) | ||
| 97 | } else { | 97 | } else { |
| 98 | rc = modbus_connect(ctx); | 98 | rc = modbus_connect(ctx); |
| 99 | if (rc == -1) { | 99 | if (rc == -1) { |
| 100 | - fprintf(stderr, "Unable to connect\n", modbus_strerror(errno)); | 100 | + fprintf(stderr, "Unable to connect %s\n", modbus_strerror(errno)); |
| 101 | modbus_free(ctx); | 101 | modbus_free(ctx); |
| 102 | return -1; | 102 | return -1; |
| 103 | } | 103 | } |