Commit ef539e0d40df7ce22ec4501339b8629b83f0e447

Authored by Stéphane Raimbault
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 97 } else {
98 98 rc = modbus_connect(ctx);
99 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 101 modbus_free(ctx);
102 102 return -1;
103 103 }
... ...