diff options
author | Aaron Durbin <adurbin@chromium.org> | 2020-03-26 12:29:35 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-03-30 08:37:56 +0000 |
commit | d47afe90ef438cbeb4f60753d8674db2217d72b2 (patch) | |
tree | 71fc6611c1a48a86c73121147bc3cdcef2ae00fe | |
parent | d72cca0c44bc944fdfbdcbc4b264ba0c3727649b (diff) | |
download | coreboot-d47afe90ef438cbeb4f60753d8674db2217d72b2.tar.xz |
util/sconfig: emit NULL sibling fields
It's helpful to see the sibling field, even when it's NULL, when
debugging the static.c output from a devictree.cb file. Ensure the
NULL fields are emitted for fullness.
Change-Id: Ib6d5b8164769a6512e762d5a525c7df1f429c866
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39862
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
-rw-r--r-- | util/sconfig/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c index d784642ae2..b48f992672 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -832,6 +832,8 @@ static void pass1(FILE *fil, FILE *head, struct device *ptr, struct device *next fprintf(fil, "\t.link_list = NULL,\n"); if (ptr->sibling) fprintf(fil, "\t.sibling = &%s,\n", ptr->sibling->name); + else + fprintf(fil, "\t.sibling = NULL,\n"); fprintf(fil, "#if !DEVTREE_EARLY\n"); for (pin = 0; pin < 4; pin++) { if (ptr->pci_irq_info[pin].ioapic_irq_pin > 0) |