diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-18 04:53:55 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-18 04:53:55 -0800 |
| commit | e9dc2e518981044c7513452f47064b5ebcf32e1e (patch) | |
| tree | e0aa24a19bc8b42138a258648c155c212ab8b87b /lib/bitmap.c | |
| parent | 3aa6ed84be153fe2b674114e7f8eafe8123aff9c (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.c | 6 |
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. |
