[flashrom] [PATCH] print.c fix - remove empty pcidevs header
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Mon Dec 14 03:57:19 CET 2009
I decided to update the patch myself since it is small enough.
Don't print out supported PCI devices header if all following lines are
excluded from build.
Signed-off-by: Adam Jurkowski <adam.jurkowski at kontron.pl>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Index: flashrom-print_pcidevs_conditional/print.c
===================================================================
--- flashrom-print_pcidevs_conditional/print.c (Revision 797)
+++ flashrom-print_pcidevs_conditional/print.c (Arbeitskopie)
@@ -231,8 +231,10 @@
print_supported_chipsets();
print_supported_boards();
#endif
+#if (NIC3COM_SUPPORT == 1) || (GFXNVIDIA_SUPPORT == 1) || (DRKAISER_SUPPORT == 1) || (SATASII_SUPPORT == 1)
printf("\nSupported PCI devices flashrom can use "
"as programmer:\n\n");
+#endif
#if NIC3COM_SUPPORT == 1
print_supported_pcidevs(nics_3com);
#endif
--
Developer quote of the month:
"We are juggling too many chainsaws and flaming arrows and tigers."
More information about the flashrom
mailing list