From: Andrew Morton <akpm@osdl.org>
To: Joe Korty <joe.korty@ccur.com>
Cc: linux-kernel@vger.kernel.org, Paul Jackson <pj@sgi.com>
Subject: Re: reduce cpumask digit grouping from 8 to 4
Date: Wed, 7 Jan 2004 11:40:37 -0800 [thread overview]
Message-ID: <20040107114037.3e10f18f.akpm@osdl.org> (raw)
In-Reply-To: <20040107171142.GA11525@rudolph.ccur.com>
Joe Korty <joe.korty@ccur.com> wrote:
>
> As long as we are going to have a seperator in cpumask_t displays,
> we might as well as group the digits into readable units.
>
> Against 2.6.1-rc2.
>
> --- base/lib/mask.c 2004-01-07 11:40:07.000000000 -0500
> +++ new/lib/mask.c 2004-01-07 11:57:38.000000000 -0500
> @@ -88,8 +88,8 @@
> int __mask_snprintf_len(char *buf, unsigned int buflen,
> const unsigned long *maskp, unsigned int maskbytes)
> {
> - u32 *wordp = (u32 *)maskp;
> - int i = maskbytes/sizeof(u32) - 1;
> + u16 *wordp = (u16 *)maskp;
> + int i = maskbytes/sizeof(u16) - 1;
> int len = 0;
> char *sep = "";
>
What does the before-and-after output look like?
Thanks.
next prev parent reply other threads:[~2004-01-07 19:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-07 17:11 Joe Korty
2004-01-07 19:40 ` Andrew Morton [this message]
2004-01-08 2:16 ` Paul Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040107114037.3e10f18f.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=joe.korty@ccur.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pj@sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome