Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932974AbbELQ7r (ORCPT ); Tue, 12 May 2015 12:59:47 -0400 Received: from smtprelay0080.hostedemail.com ([216.40.44.80]:54103 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753258AbbELQ7p (ORCPT ); Tue, 12 May 2015 12:59:45 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:5007:6261:7974:9010:10004:10400:10848:11232:11658:11914:12517:12519:12663:12740:13069:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: neck23_8f0b45cc15406 X-Filterd-Recvd-Size: 1580 Message-ID: <1431449979.2884.61.camel@perches.com> Subject: Re: [PATCH 2/2 v2] lib/vsprintf.c: Further simplify uuid_string() From: Joe Perches To: George Spelvin Cc: linux@rasmusvillemoes.dk, linux-kernel@vger.kernel.org Date: Tue, 12 May 2015 09:59:39 -0700 In-Reply-To: <20150512135736.7868.qmail@ns.horizon.com> References: <20150512135736.7868.qmail@ns.horizon.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1016 Lines: 33 On Tue, 2015-05-12 at 09:57 -0400, George Spelvin wrote: > > Acked-by: Rasmus Villemoes > > > > You may want/need to include Andrew Morton in the cc-list to get these > > picked up. > > Thank you; I sent it to you because I'm not sure who's really in charge > of this. Andrew generally gets these sorts of changes applied. > >> + /* Insert the fixed punctuation */ > >> + uuid[23] = uuid[18] = uuid[13] = uuid[8] = '-'; > >> + uuid[36] = 0; > > > I think '\0' is more common. > > It's that way beause of it was replacing > > >> - *p = 0; > > But yes, I prefer the char constant, too. And it would be consistent with > the rest of the file. I think I did that "*p = 0;" because that's what I normally use, but consistency is better. -- 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/