diff options
author | Bill Hoffa <wghoffa@us.ibm.com> | 2016-06-09 11:09:27 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-09-26 13:33:15 -0400 |
commit | 6bb22c670a36816d57443fd1cac03d51d48c3ee7 (patch) | |
tree | 5168305239be2d0561d6a60f3994795198bd8ae1 /src/import/chips/p9 | |
parent | 94f7bbb663ffeb7eb84796cc839a0fad0e5eb4bb (diff) | |
download | talos-sbe-6bb22c670a36816d57443fd1cac03d51d48c3ee7.tar.gz talos-sbe-6bb22c670a36816d57443fd1cac03d51d48c3ee7.zip |
Replace usage of printf() with FAPI_INF() in p9_tor
Change-Id: I220f106555f4639b2c81ef3fe733fce7614f464d
Original-Change-Id: If81a7fe4ef17b0da8ef35dcafc74973eee0645e4
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25597
Tested-by: Jenkins Server
Reviewed-by: GIRISANKAR PAULRAJ <gpaulraj@in.ibm.com>
Tested-by: Hostboot CI
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30303
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips/p9')
-rw-r--r-- | src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H b/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H index ca8d73de..6dff3b40 100644 --- a/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H +++ b/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H @@ -42,9 +42,15 @@ const uint32_t FIXED_RING_BUF_SIZE = #define CHIPLET_ID_MIN (uint8_t)0x00 #define CHIPLET_ID_MAX (uint8_t)0x37 -#define MY_INF(_fmt_, _args_...) printf(_fmt_, ##_args_) -#define MY_ERR(_fmt_, _args_...) printf(_fmt_, ##_args_) -#define MY_DBG(_fmt_, _args_...) printf(_fmt_, ##_args_) +#if defined(__FAPI) + #define MY_INF(_fmt_, _args_...) FAPI_INF(_fmt_, ##_args_) + #define MY_ERR(_fmt_, _args_...) FAPI_INF(_fmt_, ##_args_) + #define MY_DBG(_fmt_, _args_...) FAPI_DBG(_fmt_, ##_args_) +#else + #define MY_INF(_fmt_, _args_...) printf(_fmt_, ##_args_) + #define MY_ERR(_fmt_, _args_...) printf(_fmt_, ##_args_) + #define MY_DBG(_fmt_, _args_...) printf(_fmt_, ##_args_) +#endif // N-byte align an address, offset or size (aos) |