profile command - correct logic error

- this caused profile to complain about frequency when
    no command (start, stop) was given.
This commit is contained in:
Ben Gras 2010-10-12 11:26:47 +00:00
parent b653422883
commit e743f940d4

View 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;
}