aboutsummaryrefslogtreecommitdiffstats
path: root/argparse.c
diff options
context:
space:
mode:
authorPA4WDH2023-05-24 09:09:23 +0200
committerPA4WDH2023-05-24 09:09:23 +0200
commit33bd1b7c488e935f247407e191811a7539a12375 (patch)
treef60c23d07933afbfc36363b742945b62c93732cf /argparse.c
parentAdd logging functions (diff)
downloadcputemp2maxfreq-33bd1b7c488e935f247407e191811a7539a12375.tar.gz
cputemp2maxfreq-33bd1b7c488e935f247407e191811a7539a12375.tar.bz2
cputemp2maxfreq-33bd1b7c488e935f247407e191811a7539a12375.zip
Redirect all output to logging functions
Diffstat (limited to 'argparse.c')
-rw-r--r--argparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/argparse.c b/argparse.c
index 7246d31..43ee2ec 100644
--- a/argparse.c
+++ b/argparse.c
@@ -86,7 +86,7 @@ void argparse(int argc, char **argv)
else if (strcmp(userconfig.logger_name,"syslog")==0) userconfig.logger=&logger_syslog;
else if (strcmp(userconfig.logger_name,"kmsg")==0) userconfig.logger=&logger_kmsg;
else {
- printf("Invalid value for logger, exiting.\n");
+ config.logger("Invalid value for logger, exiting");
exit(1);
}