Irqbalance/irqbalance — pull request #10 by abattersby (2014-10-01 15:04:59+00:00)
Title: Fix bitmap_scnprintf giving truncated output when nmaskbits > 32.

Test program:

/* assumes 64-bit arch */
int main(int argc, char **argv)
{
char buf[1024];
unsigned long mask = 0x0000000002000002UL;
bitmap_scnprintf(buf, sizeof(buf), &mask, 48);
printf("%s\n", buf);
return 0;
}

Without the patch, the test prints "0002".
With the patch, the test prints "02000002".