diff options
author | David <dbphillipsnz@gmail.com> | 2014-09-27 13:08:20 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-09-27 13:08:20 +1200 |
commit | f80e1e42a919739b1ca22eb2516a74c874934e68 (patch) | |
tree | ac12f5432ad147757149e574ad039005f56fcc64 | |
parent | 432a446a7b3a6fa9ce8736bffbbe48daea578feb (diff) | |
download | paramano-f80e1e42a919739b1ca22eb2516a74c874934e68.tar.xz |
Quick fixy
-rw-r--r-- | getfreq.c | 2 | ||||
-rw-r--r-- | paramano_set.c | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -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); |