diff options
author | Charles Manning <cdhmanning@gmail.com> | 2011-01-26 13:51:16 +1300 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2011-01-26 13:51:16 +1300 |
commit | f421449422a9107e857d90d306907084dad236fb (patch) | |
tree | e3f42592af6ee7dd3024588cfb8220988e4111af /direct | |
parent | 2c8eb2bdc3e753893ecc0dd0cd9cba791d4e16db (diff) |
yaffs: Replace YBUG() with BUG()
Also clean a few other things in yportenv_xxxx.h
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'direct')
-rw-r--r-- | direct/basic-test/yaffs_norif1.c | 6 | ||||
-rw-r--r-- | direct/ydirectenv.h | 4 | ||||
-rw-r--r-- | direct/yportenv.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/direct/basic-test/yaffs_norif1.c b/direct/basic-test/yaffs_norif1.c index 5394f0e..6a9c2c4 100644 --- a/direct/basic-test/yaffs_norif1.c +++ b/direct/basic-test/yaffs_norif1.c @@ -161,12 +161,12 @@ int ynorif1_WriteChunkToNAND(struct yaffs_dev *dev,int nand_chunk,const u8 *data */ if(sizeof(struct yaffs_spare) != 16) - YBUG(); + BUG(); if(data && spare) { if(spare->page_status != 0xff) - YBUG(); + BUG(); /* Write a pre-marker */ memset(&tmpSpare,0xff,sizeof(tmpSpare)); tmpSpare.page_status = YNOR_PREMARKER; @@ -196,7 +196,7 @@ int ynorif1_WriteChunkToNAND(struct yaffs_dev *dev,int nand_chunk,const u8 *data ynorif1_FlashWrite32(spareAddr,(u32 *)&tmpSpare,16/ 4); } else { - YBUG(); + BUG(); } diff --git a/direct/ydirectenv.h b/direct/ydirectenv.h index ad4efab..f026e40 100644 --- a/direct/ydirectenv.h +++ b/direct/ydirectenv.h @@ -29,8 +29,8 @@ #include "yaffs_hweight.h" #include "assert.h" -#define YBUG() assert(0) -//#define YBUG() do { *((int *)0) =1;} while(0) +#define BUG() assert(0) +//#define BUG() do { *((int *)0) =1;} while(0) #define YCHAR char diff --git a/direct/yportenv.h b/direct/yportenv.h index 4208e80..9127f84 100644 --- a/direct/yportenv.h +++ b/direct/yportenv.h @@ -278,8 +278,8 @@ struct iattr { #define Y_DUMP_STACK() do { } while (0) #endif -#ifndef YBUG -#define YBUG() do {\ +#ifndef BUG +#define BUG() do {\ yaffs_trace(YAFFS_TRACE_BUG,\ "==>> yaffs bug: " __FILE__ " %d",\ __LINE__);\ |