]> Zhao Yanbai Git Server - minix.git/commitdiff
profile command - correct logic error
authorBen Gras <ben@minix3.org>
Tue, 12 Oct 2010 11:26:47 +0000 (11:26 +0000)
committerBen Gras <ben@minix3.org>
Tue, 12 Oct 2010 11:26:47 +0000 (11:26 +0000)
  - this caused profile to complain about frequency when
    no command (start, stop) was given.

commands/profile/profile.c

index a384b57695247a7d2ec18c59a116349a0fbd9414..dd31c4e83e19375a36edc3b62831d01c8ae4b253 100644 (file)
@@ -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;
        }