From f80e1e42a919739b1ca22eb2516a74c874934e68 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 27 Sep 2014 13:08:20 +1200 Subject: Quick fixy --- getfreq.c | 2 +- paramano_set.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/getfreq.c b/getfreq.c index 87d7bc3..e812de8 100644 --- a/getfreq.c +++ b/getfreq.c @@ -65,7 +65,7 @@ void gf_init() do { chomp(next_token); - debug("Found frequency #%d (%s KHz)\n",freq,next_token); + debug("Found frequency #%d (%s KHz)\n",total_freqs,next_token); strncpy(freqs[i][total_freqs], next_token, FREQ_LENGTH); total_freqs++; } while((next_token = strtok(NULL, " ")) != NULL); diff --git a/paramano_set.c b/paramano_set.c index 99bb56f..b235454 100644 --- a/paramano_set.c +++ b/paramano_set.c @@ -134,9 +134,9 @@ int main(int argc, char *argv[]) get_argument_summary(argc, argv, &args); debug("Correct number of command line arguments\n"); - debug("-c: %s -g: %s -f: %s\n", (args.present | ARG_CORE )? "Yes":"No", - (args.present | ARG_GOV )? "Yes":"No", - (args.present | ARG_FREQ )? "Yes":"No" ); + debug("-c: %s -g: %s -f: %s\n", (args.present & ARG_CORE )? "Yes":"No", + (args.present & ARG_GOV )? "Yes":"No", + (args.present & ARG_FREQ )? "Yes":"No" ); debug("Core: %s\n",args.core); debug("Gov : %s\n",args.governor); debug("Freq: %s\n",args.frequency); -- cgit v1.1