aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-09-17 13:16:55 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-09-17 13:16:55 +0200
commit37914e0228536457bb40dfdd30e4a5f589b8ba7a (patch)
tree8ef70038eae5af719224f355aa0886ccd9c3d5eb /src
parent572bf512d1af994b2a2f4e56115a75826cfe7f9a (diff)
downloadbbs-37914e0228536457bb40dfdd30e4a5f589b8ba7a.tar.gz
asdf
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
-rw-r--r--src/modem.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index f4318b9..bdc58e2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -218,7 +218,7 @@ void dialup_server(struct prog_params params)
//Serial port is reopened for every new connection to reset modem over DTR
int fd = open (params.serial_port, O_RDWR | O_NOCTTY | O_SYNC);
if (fd < 0) {
- PRINT_ERROR("Failed to open serial port");
+ LOGPRINTF(_LOG_ERROR, "Failed to open serial port");
return;
}
@@ -228,12 +228,12 @@ void dialup_server(struct prog_params params)
int ret = modem_accept_wait(fd);
if(ret) {
- printf("Modem error %i\n", ret);
+ LOGPRINTF(_LOG_NOTE, "Connection not established: %i", ret);
close(fd);
break;
}
- DEBUG_PRINTF("Connection\n");
+ LOGPRINTF(_LOG_NOTE,"Connection");
modem_run(fd, params.run_argc, params.run_argv);
close (fd);
diff --git a/src/modem.h b/src/modem.h
index e5aea4e..aa43d25 100644
--- a/src/modem.h
+++ b/src/modem.h
@@ -12,6 +12,7 @@
#include <errno.h>
#include "misc.h"
+#include "log.h"
#define _AT "AT\r\n"
#define _AT_ANSWER "ATA\r\n"