perf tools: Fix typo "No enough" to "Not enough"
authorAlexander Alemayhu <alexander@alemayhu.com>
Thu, 13 Oct 2016 16:18:11 +0000 (18:18 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Oct 2016 14:07:42 +0000 (11:07 -0300)
The latter version occurs much more when running git grep.

Signed-off-by: Alexander Alemayhu <alexander@alemayhu.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/20161013161811.4939-1-alexander@alemayhu.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/backward-ring-buffer.c
tools/perf/tests/bpf.c
tools/perf/util/bpf-loader.c
tools/perf/util/llvm-utils.c

index e6d1816e431a9c3bd0839db29dd8b231c40b8455..42e892b1e97981a19511d026f977c45feff0497b 100644 (file)
@@ -97,7 +97,7 @@ int test__backward_ring_buffer(int subtest __maybe_unused)
 
        evlist = perf_evlist__new();
        if (!evlist) {
-               pr_debug("No enough memory to create evlist\n");
+               pr_debug("Not enough memory to create evlist\n");
                return TEST_FAIL;
        }
 
index 2673e86ed50fad3496e1b50c7770142e21d6d32c..8f0298aff222b5d28cd2e60762875e3a2036a1e6 100644 (file)
@@ -125,7 +125,7 @@ static int do_test(struct bpf_object *obj, int (*func)(void),
        /* Instead of perf_evlist__new_default, don't add default events */
        evlist = perf_evlist__new();
        if (!evlist) {
-               pr_debug("No enough memory to create evlist\n");
+               pr_debug("Not enough memory to create evlist\n");
                return TEST_FAIL;
        }
 
index 2b2c9b82f5abc55d22ff451ec32161c558091895..a5fd275238f770bf020ef4faa954f5365d13c405 100644 (file)
@@ -241,7 +241,7 @@ parse_prog_config_kvpair(const char *config_str, struct perf_probe_event *pev)
        int err = 0;
 
        if (!text) {
-               pr_debug("No enough memory: dup config_str failed\n");
+               pr_debug("Not enough memory: dup config_str failed\n");
                return ERR_PTR(-ENOMEM);
        }
 
@@ -531,7 +531,7 @@ static int map_prologue(struct perf_probe_event *pev, int *mapping,
 
        ptevs = malloc(array_sz);
        if (!ptevs) {
-               pr_debug("No enough memory: alloc ptevs failed\n");
+               pr_debug("Not enough memory: alloc ptevs failed\n");
                return -ENOMEM;
        }
 
@@ -604,13 +604,13 @@ static int hook_load_preprocessor(struct bpf_program *prog)
        priv->need_prologue = true;
        priv->insns_buf = malloc(sizeof(struct bpf_insn) * BPF_MAXINSNS);
        if (!priv->insns_buf) {
-               pr_debug("No enough memory: alloc insns_buf failed\n");
+               pr_debug("Not enough memory: alloc insns_buf failed\n");
                return -ENOMEM;
        }
 
        priv->type_mapping = malloc(sizeof(int) * pev->ntevs);
        if (!priv->type_mapping) {
-               pr_debug("No enough memory: alloc type_mapping failed\n");
+               pr_debug("Not enough memory: alloc type_mapping failed\n");
                return -ENOMEM;
        }
        memset(priv->type_mapping, -1,
@@ -864,7 +864,7 @@ bpf_map_op_setkey(struct bpf_map_op *op, struct parse_events_term *term)
 
                op->k.array.ranges = memdup(term->array.ranges, memsz);
                if (!op->k.array.ranges) {
-                       pr_debug("No enough memory to alloc indices for map\n");
+                       pr_debug("Not enough memory to alloc indices for map\n");
                        return -ENOMEM;
                }
                op->key_type = BPF_MAP_KEY_RANGES;
@@ -929,7 +929,7 @@ bpf_map_priv__clone(struct bpf_map_priv *priv)
 
        newpriv = zalloc(sizeof(*newpriv));
        if (!newpriv) {
-               pr_debug("No enough memory to alloc map private\n");
+               pr_debug("Not enough memory to alloc map private\n");
                return NULL;
        }
        INIT_LIST_HEAD(&newpriv->ops_list);
@@ -960,7 +960,7 @@ bpf_map__add_op(struct bpf_map *map, struct bpf_map_op *op)
        if (!priv) {
                priv = zalloc(sizeof(*priv));
                if (!priv) {
-                       pr_debug("No enough memory to alloc map private\n");
+                       pr_debug("Not enough memory to alloc map private\n");
                        return -ENOMEM;
                }
                INIT_LIST_HEAD(&priv->ops_list);
index bf7216b8731ddbbeb9326181857962d54c6c3d03..27b6f303720a4e61c62873d6116a2a351e880471 100644 (file)
@@ -339,7 +339,7 @@ dump_obj(const char *path, void *obj_buf, size_t size)
        char *p;
 
        if (!obj_path) {
-               pr_warning("WARNING: No enough memory, skip object dumping\n");
+               pr_warning("WARNING: Not enough memory, skip object dumping\n");
                return;
        }