Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1McKbS-00078z-SL for mharc-grub-devel@gnu.org; Sat, 15 Aug 2009 10:51:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McKbQ-00076z-Cp for grub-devel@gnu.org; Sat, 15 Aug 2009 10:51:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McKbL-00072F-CK for grub-devel@gnu.org; Sat, 15 Aug 2009 10:51:27 -0400 Received: from [199.232.76.173] (port=36017 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McKbL-000725-7a for grub-devel@gnu.org; Sat, 15 Aug 2009 10:51:23 -0400 Received: from mail-fx0-f219.google.com ([209.85.220.219]:48965) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1McKNr-0002kR-Ln for grub-devel@gnu.org; Sat, 15 Aug 2009 10:37:27 -0400 Received: by fxm19 with SMTP id 19so1677426fxm.2 for ; Sat, 15 Aug 2009 07:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=DoupsGd+LN73EIJ4Meay98MpVtyLaGixmWn6BnQVHkA=; b=HUKOr8mSVVoCJcAyhPRINZXxBQshseThyPDZZo3RB/jgdMLajYupsxjOuRskiYnAqa 0wKkdOdu7jXcBbv7sj0vNXJrK05I6aHkrj4Q8YWMBTLf0l0mSaGTPzgiB78USkKcumx3 JFnvtn9WwzL05TTQ3wt9h7sCUbsiUTynULeKY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=sCCKEal+tyaENnPq2s5wT05ohdlHISMvxPeHN1z0CWCbZjpb9caFOurSBp++zGhvlE OEzUs9DMAA1V1WLTuiuc0yofD5SkV9rsoRzKtuuB4LdRfscR77JCE7GX0EszkQD9+oOz RJ+TcsSDX+92LkyVoMz+5os7VTDubjQQXlB7U= MIME-Version: 1.0 Received: by 10.204.115.73 with SMTP id h9mr271528bkq.39.1250347046459; Sat, 15 Aug 2009 07:37:26 -0700 (PDT) In-Reply-To: <1250346103.25294.7.camel@accesodirecto.casa> References: <1250346103.25294.7.camel@accesodirecto.casa> Date: Sat, 15 Aug 2009 16:37:26 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Disable debug messages in reiserfs.mod 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: Sat, 15 Aug 2009 14:51:28 -0000 2009/8/15 Javier Mart=EDn : > El s=E1b, 15-08-2009 a las 16:12 +0200, Vladimir 'phcoder' Serbinenko > escribi=F3: >> Hello. Recently we had no bug-reports about ReiserFS and debug >> messages and disabling them saves 533 bytes. I find it important >> especially because core.img with reiserfs is currently the biggest >> among filesystems supported in mainstream > Completely removing debug messages from the compiled binaries should be > selectable as a GRUB-wide configure-time switch, defaulting to _include_ > such strings. Furthermore, removing the possibility of enabling debug > messages at runtime from certain modules (reiserfs) but not others > (ext4? vbe? drivemap?) will present the user with an non-uniform > interface - confusing and maybe frustrating. > phcoder@phcoder-laptop ~/grub2/gitsvn/fs $ grep -l grub_dprintf * reiserfs.c As you can see reiserfs.c is the only filesystem module with debugging information. (Now I noticed that affs.c and fat.c have a leftover grub_printf which I'll change to dprintf. In fat.c additionally printf is disabled). So I conclude that the consensus is not to have dprintfs in well-tested filesystem code. As for vbe and drivemap they don't go to core.img so there is no reason to care too much about their size > In my opinion, there are better, wiser ways of reducing the size of > core.img, such as the new object format proposed by Bean, so unless > there is some kind of "emergency" like "some recent patch brought a > common pc+biosdisk+reiserfs core.img over the size limit", I don't think > this patch would be a good decision. > I have series of patches which will bring pc+ata+ below 31 KiB margin > -- > -- Lazy, Oblivious, Recurrent Disaster -- Habbit > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git