replace fprintf(stderr with PX4_{INFO/WARN}

This commit is contained in:
Beat Küng
2019-06-04 11:57:54 +02:00
committed by Julian Oes
parent d947818654
commit 08b8ee4831
4 changed files with 37 additions and 37 deletions
+3 -2
View File
@@ -45,6 +45,7 @@
*/
#include <px4_config.h>
#include <px4_log.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
@@ -79,10 +80,10 @@ static void
usage(const char *reason)
{
if (reason) {
fprintf(stderr, "%s\n", reason);
PX4_WARN("%s", reason);
}
fprintf(stderr, "usage: md25 {start|stop|read|status|search|test|change_address}\n\n");
PX4_INFO("usage: md25 {start|stop|read|status|search|test|change_address}");
exit(1);
}