Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KbKww-0003dV-Vf for mharc-grub-devel@gnu.org; Thu, 04 Sep 2008 15:57:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbKwt-0003cV-Tl for grub-devel@gnu.org; Thu, 04 Sep 2008 15:56:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbKws-0003c9-HI for grub-devel@gnu.org; Thu, 04 Sep 2008 15:56:59 -0400 Received: from [199.232.76.173] (port=35750 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbKws-0003c6-Cd for grub-devel@gnu.org; Thu, 04 Sep 2008 15:56:58 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:59908) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbKwr-0007WL-LX for grub-devel@gnu.org; Thu, 04 Sep 2008 15:56:58 -0400 Received: from [85.180.61.73] (e180061073.adsl.alicedsl.de [85.180.61.73]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis) id 0MKwh2-1KbKwq3kKq-0007Da; Thu, 04 Sep 2008 21:56:57 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <1220371160.6359.37.camel@fz.local> References: <20080808202337.3440.57502.reportbug@sylvester.jejik.com.jejik.com> <1218277583.9301.6.camel@fz.local> <489EEAC5.4080209@jejik.com> <1218471512.6939.19.camel@fz.local> <1218735245.8950.10.camel@fz.local> <20080814180353.GC5614@thorin> <1218742324.10393.8.camel@fz.local> <20080814203856.GA23307@thorin> <1218748505.10393.13.camel@fz.local> <1219071926.4569.57.camel@fz.local> <20080901221405.GA11511@thorin> <1220309171.4115.31.camel@fz.local> <1220344081.4101.2.camel@fz.local> <48BD54CD.3000907@nic.fi> <1220371160.6359.37.camel@fz.local> Content-Type: text/plain; charset=UTF-8 Date: Thu, 04 Sep 2008 21:56:55 +0200 Message-Id: <1220558215.18782.49.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V01U2FsdGVkX19mIPcT/y0EgSDtLSzm0q/Qunf4ZHNlU1dovwu yRltR+Z619px62ml6FHFf6szNlVWldmSjU/6P3tbDj5riJobYx ZPPesXz3X3lwE+VjlcRMCBySBAFNliS X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) Subject: Re: [PATCH] Grub2 cannot find LVM volume groups with a dash (-) in the name X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 19:57:00 -0000 Commited in the hope that Marco isn't angry with me ;) and I noticed I used still past once and there was a reason for len =3D +1 and if < len not <=3D len Am Dienstag, den 02.09.2008, 17:59 +0200 schrieb Felix Zielcke: > Am Dienstag, den 02.09.2008, 17:59 +0300 schrieb Vesa J=C3=A4=C3=A4skel= =C3=A4inen:=20 > > Felix Zielcke wrote: > >=20 > > sizeof returns type of size_t so it would be good that char k uses that= . > > I am a bit surprised that this didn't generate compiler warning? >=20 > Well somewhere hidden in a mail from me, I think I already wrote that I > already got the idea to make these warnings more visible :) > I didn't look yet further into it, maybe even a [RFC] topic should be > made for this. > I'm thinking about how linux kernel compiling works. >=20 > Actually I haven't checked that code ;) >=20 > > And there is no reason to define integers as constants unless you reall= y > > want to make sure they don't change :) >=20 > This is just a thing left from my previous coding experience. > As I started to code I personally just prefer that, but yeah gcc is so > nice and optimizes (almost) everything for us and this code is so little > anyway :) >=20 > > > + p =3D strchr (os_dev, 'p'); > > > + if (p) > > > + *p =3D ','; > >=20 > > It is usually a bad idea to modify source string. >=20 > Urm right this is util/ no need to save a few bytes :) >=20 > Thanks for your suggestions Vesa. > It really looks now better compared to the first code I sent about this > problem and it only uses now 3 variables :) >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel --=20 Felix Zielcke