From e743f940d4e8b3f95d6884ad654940011f8f1565 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 12 Oct 2010 11:26:47 +0000 Subject: [PATCH] profile command - correct logic error - this caused profile to complain about frequency when no command (start, stop) was given. --- commands/profile/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/profile/profile.c b/commands/profile/profile.c index a384b5769..dd31c4e83 100644 --- a/commands/profile/profile.c +++ b/commands/profile/profile.c @@ -110,7 +110,7 @@ int main(int argc, char *argv[]) * are correct for RTC */ if (action == START && intr_type == PROF_RTC && - freq < MIN_FREQ || freq > MAX_FREQ) { + (freq < MIN_FREQ || freq > MAX_FREQ)) { printf("Incorrect frequency.\n"); return 1; }