summaryrefslogtreecommitdiff
path: root/colorize.h
blob: 928deb2c9fe1b4feab254ca02e95e2837c6cda48 (plain)
1
2
3
4
5
6
7
8
#ifndef COLORIZE_H
#define COLORIZE_H

#define colorize_start(fore)		"\033[" __##fore "m"
#define colorize_start_full(fore, back)	"\033[" __##fore ";" __on_##back "m"
#define colorize_end()			"\033[" __reset "m"

#endif /* COLORIZE_H */
d>
authorDan Carpenter <dan.carpenter@oracle.com>2016-04-15 17:51:06 +0300
committerBjorn Helgaas <bhelgaas@google.com>2016-04-15 10:17:03 -0500
commit4d88d5a7bf92e31215543b955b8883dcf6f66c1f (patch)
tree2cc30fc737b6cdb6193a36b21129013317d70af7
parent9735a22799b9214d17d3c231fe377fc852f042e9 (diff)
PCI: acpiphp_ibm: Avoid uninitialized variable reference
If ibm_get_table_from_acpi() fails then "table" isn't initialized. Check for failure so we don't reference "table" unless it's been initialized. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat