[coreboot-gerrit] Change in coreboot[master]: src/nb/i945: Fix "CONFIG_DEFAULT_CONSOLE_LOGLEVEL > 8" if statement
Elyes HAOUAS (Code Review)
gerrit at coreboot.org
Thu Oct 4 10:09:21 CEST 2018
Elyes HAOUAS has posted comments on this change. ( https://review.coreboot.org/28878 )
Change subject: src/nb/i945: Fix "CONFIG_DEFAULT_CONSOLE_LOGLEVEL > 8" if statement
......................................................................
Patch Set 3:
> >> Using #if is a bad habit. Also, what are the outer parentheses
> for?
> >
> > If I'm not wrong, '#if' is used in (romstage) to bypass the code
> if
> > the statement is not true.
>
> You can use it like that. But that's not specific to any stage. And
> it's a bad choice because the guarded code won't be compile tested.
>
> There is no other way to do this in romcc bootblock code, maybe
> that is what you had in mind?
I mean this code is for debugging purpose only and probably we don't need
it in side the ROM.
I'm wondering if it will compile and if 'sdram_dump_mchbar_registers'
makes sense before RAM init.
--
To view, visit https://review.coreboot.org/28878
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I1ff87c76b3aef4af93d88dd9c02a743656aacfc0
Gerrit-Change-Number: 28878
Gerrit-PatchSet: 3
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
Gerrit-Reviewer: Angel Pons <th3fanbus at gmail.com>
Gerrit-Reviewer: Elyes HAOUAS <ehaouas at noos.fr>
Gerrit-Reviewer: Nico Huber <nico.h at gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-Comment-Date: Thu, 04 Oct 2018 08:09:21 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181004/2a4f9f42/attachment.html>
More information about the coreboot-gerrit
mailing list