diff options
author | PA4WDH | 2023-05-24 09:09:23 +0200 |
---|---|---|
committer | PA4WDH | 2023-05-24 09:09:23 +0200 |
commit | 33bd1b7c488e935f247407e191811a7539a12375 (patch) | |
tree | f60c23d07933afbfc36363b742945b62c93732cf /argparse.c | |
parent | Add logging functions (diff) | |
download | cputemp2maxfreq-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |