print all errors on stderr in all binaries

This commit is contained in:
Stefan Wahren
2013-04-26 08:18:17 +02:00
parent ea0c6c3455
commit f6601ca40f
8 changed files with 38 additions and 38 deletions

View File

@ -106,13 +106,13 @@ main(int argc, char **argv)
if (mbus_connect(handle) == -1)
{
printf("Failed to setup connection to M-bus gateway\n");
fprintf(stderr,"Failed to setup connection to M-bus gateway\n");
return 1;
}
if (mbus_serial_set_baudrate(handle, baudrate) == -1)
{
printf("Failed to set baud rate.\n");
fprintf(stderr,"Failed to set baud rate.\n");
return 1;
}