Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753902AbZLTLi7 (ORCPT ); Sun, 20 Dec 2009 06:38:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751550AbZLTLi6 (ORCPT ); Sun, 20 Dec 2009 06:38:58 -0500 Received: from isrv.corpit.ru ([81.13.33.159]:37253 "EHLO isrv.corpit.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751442AbZLTLi6 (ORCPT ); Sun, 20 Dec 2009 06:38:58 -0500 Message-ID: <4B2E0CCF.7050509@msgid.tls.msk.ru> Date: Sun, 20 Dec 2009 14:38:55 +0300 From: Michael Tokarev Organization: Telecom Service, JSC User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: Johannes Stezenbach CC: Sam Ravnborg , Michael Guntsche , Oliver Hartkopp , linux-kernel , mmarek@suse.cz Subject: Re: 2.6.33-rc1 Reboot right after bootloader References: <20091219233457.GA4288@trillian.comsick.at> <20091220084656.GA485@merkur.ravnborg.org> <20091220091019.GA20246@sig21.net> <4B2DFEB7.4080507@msgid.tls.msk.ru> <4B2E062C.1040106@msgid.tls.msk.ru> In-Reply-To: <4B2E062C.1040106@msgid.tls.msk.ru> X-Enigmail-Version: 0.95.0 OpenPGP: id=804465C5 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1313 Lines: 33 Michael Tokarev ?????: > Michael Tokarev wrote: > [] >> So now I don't know what to do. According to the standard, there's >> no utility that will work here. ;) Maybe the attached (together >> with 4a2ff67c88211026afcbdbc190c13f705dae1b59) will make everyone happy? > > --- a/scripts/Makefile.lib.orig 2009-12-19 18:36:01.944153109 +0300 > +++ a/scripts/Makefile.lib 2009-12-20 13:36:04.014530573 +0300 > @@ -215,6 +215,6 @@ > dec_size=$$(expr $$dec_size + $$fsize); \ > done; \ > -printf "%08x" $$dec_size | \ > - sed 's/\(..\)\(..\)\(..\)\(..\)/\\\\x\4\\\\x\3\\\\x\2\\\\x\1/g' \ > +printf "%012o" $$dec_size | \ > + sed 's/\(...\)\(...\)\(...\)\(...\)/\\\\4\\\\3\\\\2\\\\1/g' \ > ) > > Apparently that does not work with dash either. It produces \4\3\2\1: .. ..because one pair of backslashes are missing before each digit, should be: + sed 's/\(...\)\(...\)\(...\)\(...\)/\\\\\\4\\\\\\3\\\\\\2\\\\\\1/g' \ But that still does not work, because a byte does not correspond to 3 octal characters, that's why it was hexadecimal... /mjt -- 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/