[PATCH 3/3] uncompress: add detected file type debug print

Marco Felsch m.felsch at pengutronix.de
Wed Jan 24 06:22:43 PST 2024


On 24-01-24, Marco Felsch wrote:
> On 24-01-24, Ahmad Fatoum wrote:
> > On 24.01.24 14:47, Marco Felsch wrote:
> > > This can be useful for developers.
> > > 
> > > Signed-off-by: Marco Felsch <m.felsch at pengutronix.de>
> > > ---
> > >  lib/uncompress.c | 2 ++
> > >  1 file changed, 2 insertions(+)
> > > 
> > > diff --git a/lib/uncompress.c b/lib/uncompress.c
> > > index e7a3ffde823e..48e8173501c6 100644
> > > --- a/lib/uncompress.c
> > > +++ b/lib/uncompress.c
> > > @@ -97,6 +97,8 @@ int uncompress(unsigned char *inbuf, int len,
> > >  		ft = file_detect_type(uncompress_buf, 32);
> > >  	}
> > >  
> > > +	pr_debug("Filetype detected: %s\n", file_type_to_string(ft));
> > 
> > Not that I mind, but do you know about the filetype command?
> 
> I used it to check the kernel image within a fit container.

After checking the code path which is a bit confusing, I see that I
didn't triggered the bootm path the image-fit path which uses the same
uncompression algorithm. So the cover-letter title is incorrect.

Regards,
  Marco

> 
> Regards,
>   Marco
> 
> 
> 
> > 
> > > +
> > >  	switch (ft) {
> > >  #ifdef CONFIG_BZLIB
> > >  	case filetype_bzip2:
> > 
> > -- 
> > Pengutronix e.K.                           |                             |
> > Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> > 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> > 
> > 
> 
> 



More information about the barebox mailing list