Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266211AbUAGTjm (ORCPT ); Wed, 7 Jan 2004 14:39:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266216AbUAGTjm (ORCPT ); Wed, 7 Jan 2004 14:39:42 -0500 Received: from fw.osdl.org ([65.172.181.6]:59783 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S266211AbUAGTj2 (ORCPT ); Wed, 7 Jan 2004 14:39:28 -0500 Date: Wed, 7 Jan 2004 11:40:37 -0800 From: Andrew Morton To: Joe Korty Cc: linux-kernel@vger.kernel.org, Paul Jackson Subject: Re: reduce cpumask digit grouping from 8 to 4 Message-Id: <20040107114037.3e10f18f.akpm@osdl.org> In-Reply-To: <20040107171142.GA11525@rudolph.ccur.com> References: <20040107171142.GA11525@rudolph.ccur.com> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 935 Lines: 29 Joe Korty 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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/