summaryrefslogtreecommitdiffstats
path: root/libflash/libflash.h
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2017-07-28 16:46:20 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-01 13:57:02 +1000
commit4e1e9f12b5f2b18fa0aa71c6558fb799de49625e (patch)
tree37a3b2cfc99098f34cf0972187e030cc35dfa6f3 /libflash/libflash.h
parent5c2ed41022baaac49be3620f375af85a4a852c2b (diff)
downloadblackbird-skiboot-4e1e9f12b5f2b18fa0aa71c6558fb799de49625e.tar.gz
blackbird-skiboot-4e1e9f12b5f2b18fa0aa71c6558fb799de49625e.zip
libflash: Adding debugging output
Also add usage text to pflash. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Reviewed-by: Samuel Mendoza-Jonas <sam@mendozajonas.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash/libflash.h')
-rw-r--r--libflash/libflash.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/libflash/libflash.h b/libflash/libflash.h
index 4fecfe75..ff3a9823 100644
--- a/libflash/libflash.h
+++ b/libflash/libflash.h
@@ -28,19 +28,6 @@
*/
#include <libflash/errors.h>
-#ifdef __SKIBOOT__
-#include <skiboot.h>
-#define FL_INF(fmt...) do { prlog(PR_INFO, fmt); } while(0)
-#define FL_DBG(fmt...) do { prlog(PR_DEBUG, fmt); } while(0)
-#define FL_ERR(fmt...) do { prlog(PR_ERR, fmt); } while(0)
-#else
-#include <stdio.h>
-extern bool libflash_debug;
-#define FL_DBG(fmt...) do { if (libflash_debug) printf(fmt); } while(0)
-#define FL_INF(fmt...) do { printf(fmt); } while(0)
-#define FL_ERR(fmt...) do { printf(fmt); } while(0)
-#endif
-
/* Flash chip, opaque */
struct flash_chip;
struct spi_flash_ctrl;
OpenPOWER on IntegriCloud