[BACK]Return to assert.c CVS log [TXT][DIR] Up to [local] / prex-old / dev / lib

Diff for /prex-old/dev/lib/assert.c between version 1.1.1.1 and 1.1.1.1.2.1

version 1.1.1.1, 2008/06/03 10:38:42 version 1.1.1.1.2.1, 2008/08/13 17:12:24
Line 30 
Line 30 
 /*  /*
  * assert.c - assertion routine   * assert.c - assertion routine
  */   */
   
 #include <driver.h>  #include <driver.h>
   
 /*  /*
Line 42 
Line 43 
 void  void
 assert(const char *file, int line, const char *exp)  assert(const char *file, int line, const char *exp)
 {  {
   
         irq_lock();          irq_lock();
         panic("\nAssertion fail!: %s line:%d '%s'\n", file, line, exp);  #ifdef DEBUG
           printf("\nAssertion failed: %s line:%d '%s'\n", file, line, exp);
   #endif
           panic("driver panic");
           /* NOTREACHED */
 }  }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.1.2.1

CVSweb