[PATCH] Linux Kernel Markers documentation fix typo and use ARRAY_SIZE

Mathieu Desnoyers
2007-04-11T18:57:22Z

Linux Kernel Markers documentation fix typo and use ARRAY_SIZE

Following comments from Randy Dunlap. Applies on top of the
linux-kernel-markers-documentation-markers-update-documentation patch.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>

--- a/Documentation/marker.txt
+++ b/Documentation/marker.txt
@@ -103,7 +103,7 @@ clean:
------------------------------ CUT -------------------------------------
/* probe-example.c
*
- * Connects a two functions to marker call sites.
+ * Connects two functions to marker call sites.
*
* (C) Copyright 2007 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
*
@@ -117,7 +117,7 @@ clean:
#include <linux/marker.h>
#include <asm/atomic.h>

-#define NUM_PROBES (sizeof(probe_array) / sizeof(struct probe_data))
+#define NUM_PROBES ARRAY_SIZE(probe_array)

struct probe_data {
const char *name;