From e9dc2e518981044c7513452f47064b5ebcf32e1e Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 18 Feb 2004 04:53:55 -0800 Subject: [PATCH] Rename bitmap_snprintf() and cpumask_snprintf() to *_scnprintf() From: Joe Korty Rename bitmap_snprintf() to bitmap_scnprintf() and cpumask_snprintf() to cpumask_scnprintf(), as these functions now belong to the scnprintf family of functions. --- include/linux/bitmap.h | 2 +- include/linux/cpumask.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/linux') 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) -- cgit v1.2.3