aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-09-27 13:08:20 +1200
committerDavid <dbphillipsnz@gmail.com>2014-09-27 13:08:20 +1200
commitf80e1e42a919739b1ca22eb2516a74c874934e68 (patch)
treeac12f5432ad147757149e574ad039005f56fcc64
parent432a446a7b3a6fa9ce8736bffbbe48daea578feb (diff)
downloadparamano-f80e1e42a919739b1ca22eb2516a74c874934e68.tar.xz
Quick fixy
-rw-r--r--getfreq.c2
-rw-r--r--paramano_set.c6
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);