]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - tools/perf/builtin-record.c
perf record: Remove newline character from perror() argument
[net-next-2.6.git] / tools / perf / builtin-record.c
index ff77b805de71ac1b0d058a1489efd34797b9a004..b530beefd9ad1286b410392b0d36a0f8dbc18e5e 100644 (file)
@@ -353,7 +353,7 @@ try_again:
                }
 
                if (read(fd[nr_cpu][counter][thread_index], &read_data, sizeof(read_data)) == -1) {
-                       perror("Unable to read perf file descriptor\n");
+                       perror("Unable to read perf file descriptor");
                        exit(-1);
                }
 
@@ -626,7 +626,7 @@ static int __cmd_record(int argc, const char **argv)
 
        nr_cpus = read_cpu_map(cpu_list);
        if (nr_cpus < 1) {
-               perror("failed to collect number of CPUs\n");
+               perror("failed to collect number of CPUs");
                return -1;
        }