summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-18 04:53:55 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-18 04:53:55 -0800
commite9dc2e518981044c7513452f47064b5ebcf32e1e (patch)
treee0aa24a19bc8b42138a258648c155c212ab8b87b /include
parent3aa6ed84be153fe2b674114e7f8eafe8123aff9c (diff)
[PATCH] Rename bitmap_snprintf() and cpumask_snprintf() to *_scnprintf()
From: Joe Korty <joe.korty@ccur.com> Rename bitmap_snprintf() to bitmap_scnprintf() and cpumask_snprintf() to cpumask_scnprintf(), as these functions now belong to the scnprintf family of functions.
Diffstat (limited to 'include')
-rw-r--r--include/linux/bitmap.h2
-rw-r--r--include/linux/cpumask.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
index 97fec37b1029..2ad5fb97fa26 100644
--- a/include/linux/bitmap.h
+++ b/include/linux/bitmap.h
@@ -41,7 +41,7 @@ void bitmap_and(unsigned long *dst, const unsigned long *bitmap1,
void bitmap_or(unsigned long *dst, const unsigned long *bitmap1,
const unsigned long *bitmap2, int bits);
int bitmap_weight(const unsigned long *bitmap, int bits);
-int bitmap_snprintf(char *buf, unsigned int buflen,
+int bitmap_scnprintf(char *buf, unsigned int buflen,
const unsigned long *maskp, int bits);
int bitmap_parse(const char __user *ubuf, unsigned int ubuflen,
unsigned long *maskp, int bits);
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
index f19587e5c71a..5731bdb3c7d8 100644
--- a/include/linux/cpumask.h
+++ b/include/linux/cpumask.h
@@ -32,8 +32,8 @@ extern cpumask_t cpu_possible_map;
#define for_each_online_cpu(cpu) for (cpu = 0; cpu < 1; cpu++)
#endif
-#define cpumask_snprintf(buf, buflen, map) \
- bitmap_snprintf(buf, buflen, cpus_addr(map), NR_CPUS)
+#define cpumask_scnprintf(buf, buflen, map) \
+ bitmap_scnprintf(buf, buflen, cpus_addr(map), NR_CPUS)
#define cpumask_parse(buf, buflen, map) \
bitmap_parse(buf, buflen, cpus_addr(map), NR_CPUS)