summaryrefslogtreecommitdiff
path: root/lib/bitmap.c
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 /lib/bitmap.c
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 'lib/bitmap.c')
-rw-r--r--lib/bitmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bitmap.c b/lib/bitmap.c
index 1f1efb07b616..4377231e98e3 100644
--- a/lib/bitmap.c
+++ b/lib/bitmap.c
@@ -165,7 +165,7 @@ EXPORT_SYMBOL(bitmap_weight);
#define unhex(c) (isdigit(c) ? (c - '0') : (toupper(c) - 'A' + 10))
/**
- * bitmap_snprintf - convert bitmap to an ASCII hex string.
+ * bitmap_scnprintf - convert bitmap to an ASCII hex string.
* @buf: byte buffer into which string is placed
* @buflen: reserved size of @buf, in bytes
* @maskp: pointer to bitmap to convert
@@ -174,7 +174,7 @@ EXPORT_SYMBOL(bitmap_weight);
* Exactly @nmaskbits bits are displayed. Hex digits are grouped into
* comma-separated sets of eight digits per set.
*/
-int bitmap_snprintf(char *buf, unsigned int buflen,
+int bitmap_scnprintf(char *buf, unsigned int buflen,
const unsigned long *maskp, int nmaskbits)
{
int i, word, bit, len = 0;
@@ -200,7 +200,7 @@ int bitmap_snprintf(char *buf, unsigned int buflen,
}
return len;
}
-EXPORT_SYMBOL(bitmap_snprintf);
+EXPORT_SYMBOL(bitmap_scnprintf);
/**
* bitmap_parse - convert an ASCII hex string into a bitmap.