[PATCH] flashrom: Enable SST49* protection register debug
June 5, 2009
12:47 a.m.
See patch. Uwe. -- http://www.hermann-uwe.de | http://www.holsham-traders.de http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
June 5, 2009
12:56 a.m.
New subject: [PATCH] flashrom: Enable SST49* protection register debug
On Thu, Jun 4, 2009 at 4:47 PM, Uwe Hermann <uwe@hermann-uwe.de> wrote:
> See patch.
- //printf("lockbits at address=0x%08lx is 0x%01x\n", (unsigned
long)0xFFC00000 - size + (i * 65536) + 2, *(bios + (i * 65536) + 2) );
+ printf("lockbits at address=%p is 0x%01x\n", (void *)(0xFFC00000 -
size + (i * 65536) + 2), chip_readb(bios + (i * 65536) + 2) );
You probably meant printf_debug there too.
- //printf("lockbits at address=0x%08lx is 0x%01x\n", (unsigned
long)0xFFc00000 - size + address + 2, *(bios + address + 2) );
+ printf_debug("lockbits at address=%p is 0x%01x\n", (void
*)(0xFFc00000 - size + address + 2), chip_readb(bios + address + 2) );
I'd prefer 0xffc000 or 0xFFC000...
Acked-by: Myles Watson<mylesgw@gmail.com>
Thanks,
Myles
2:42 a.m.
New subject: [PATCH] flashrom: Enable SST49* protection register debug
On Thu, Jun 04, 2009 at 04:56:07PM -0600, Myles Watson wrote:
> On Thu, Jun 4, 2009 at 4:47 PM, Uwe Hermann <uwe@hermann-uwe.de> wrote:
> > See patch.
> - //printf("lockbits at address=0x%08lx is 0x%01x\n", (unsigned
> long)0xFFC00000 - size + (i * 65536) + 2, *(bios + (i * 65536) + 2) );
> + printf("lockbits at address=%p is 0x%01x\n", (void *)(0xFFC00000 -
> size + (i * 65536) + 2), chip_readb(bios + (i * 65536) + 2) );
>
> You probably meant printf_debug there too.
True, fixed.
> - //printf("lockbits at address=0x%08lx is 0x%01x\n", (unsigned
> long)0xFFc00000 - size + address + 2, *(bios + address + 2) );
> + printf_debug("lockbits at address=%p is 0x%01x\n", (void
> *)(0xFFc00000 - size + address + 2), chip_readb(bios + address + 2) );
>
> I'd prefer 0xffc000 or 0xFFC000...
Yep, fixed.
> Acked-by: Myles Watson<mylesgw@gmail.com>
Thanks, r573 with some additional whitespace fixes.
Uwe.
--
http://www.hermann-uwe.de | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
6251
Age (days ago)
6252
Last active (days ago)
2 comments
2 participants
participants (2)
-
Myles Watson -
Uwe Hermann