From: Ben Gras Date: Tue, 12 Oct 2010 11:26:47 +0000 (+0000) Subject: profile command - correct logic error X-Git-Tag: v3.2.0~783 X-Git-Url: http://zhaoyanbai.com/repos/rndc.html?a=commitdiff_plain;h=e743f940d4e8b3f95d6884ad654940011f8f1565;p=minix.git profile command - correct logic error - this caused profile to complain about frequency when no command (start, stop) was given. --- 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; }