aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitmap.c')
-rw-r--r--lib/bitmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitmap.c b/lib/bitmap.c
index e85040ba1f22..088adbdcbad9 100644
--- a/lib/bitmap.c
+++ b/lib/bitmap.c
@@ -541,8 +541,8 @@ int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long *maskp,
541 int n = 0; 541 int n = 0;
542 542
543 if (len > 1) { 543 if (len > 1) {
544 n = list ? bitmap_scnlistprintf(buf, len, maskp, nmaskbits) : 544 n = list ? scnprintf(buf, len, "%*pbl", nmaskbits, maskp) :
545 bitmap_scnprintf(buf, len, maskp, nmaskbits); 545 scnprintf(buf, len, "%*pb", nmaskbits, maskp);
546 buf[n++] = '\n'; 546 buf[n++] = '\n';
547 buf[n] = '\0'; 547 buf[n] = '\0';
548 } 548 }