lkml.org 
[lkml]   [2009]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.6.33-rc1 Reboot right after bootloader
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


\
 
 \ /
  Last update: 2009-12-20 12:41    [W:0.072 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site