Print this page
10805 Fix for 10687 can be improved


  83 
  84 #ifdef DEBUG
  85 #define RDSV3_DPRINTF_INTR      rdsv3_dprintf_intr
  86 #define RDSV3_DPRINTF5          rdsv3_dprintf5
  87 #define RDSV3_DPRINTF4          rdsv3_dprintf4
  88 #define RDSV3_DPRINTF3          rdsv3_dprintf3
  89 
  90 void rdsv3_dprintf_intr(
  91                 char            *name,
  92                 char            *fmt, ...);
  93 void rdsv3_dprintf5(
  94                 char            *name,
  95                 char            *fmt, ...);
  96 void rdsv3_dprintf4(
  97                 char            *name,
  98                 char            *fmt, ...);
  99 void rdsv3_dprintf3(
 100                 char            *name,
 101                 char            *fmt, ...);
 102 #else
 103 #define RDSV3_DPRINTF_INTR(...)
 104 #define RDSV3_DPRINTF5(...)
 105 #define RDSV3_DPRINTF4(...)
 106 #define RDSV3_DPRINTF3(...)
 107 #endif
 108 
 109 #define RDSV3_DPRINTF2          rdsv3_dprintf2
 110 #define RDSV3_DPRINTF1          rdsv3_dprintf1
 111 #define RDSV3_DPRINTF0          rdsv3_dprintf0
 112 
 113 void rdsv3_dprintf2(
 114                 char            *name,
 115                 char            *fmt, ...);
 116 void rdsv3_dprintf1(
 117                 char            *name,
 118                 char            *fmt, ...);
 119 void rdsv3_dprintf0(
 120                 char            *name,
 121                 char            *fmt, ...);
 122 
 123 void rdsv3_trace(
 124                 char            *name,
 125                 uint8_t         lvl,
 126                 char            *fmt, ...);


  83 
  84 #ifdef DEBUG
  85 #define RDSV3_DPRINTF_INTR      rdsv3_dprintf_intr
  86 #define RDSV3_DPRINTF5          rdsv3_dprintf5
  87 #define RDSV3_DPRINTF4          rdsv3_dprintf4
  88 #define RDSV3_DPRINTF3          rdsv3_dprintf3
  89 
  90 void rdsv3_dprintf_intr(
  91                 char            *name,
  92                 char            *fmt, ...);
  93 void rdsv3_dprintf5(
  94                 char            *name,
  95                 char            *fmt, ...);
  96 void rdsv3_dprintf4(
  97                 char            *name,
  98                 char            *fmt, ...);
  99 void rdsv3_dprintf3(
 100                 char            *name,
 101                 char            *fmt, ...);
 102 #else
 103 #define RDSV3_DPRINTF_INTR(...) (void)(0)
 104 #define RDSV3_DPRINTF5(...)     (void)(0)
 105 #define RDSV3_DPRINTF4(...)     (void)(0)
 106 #define RDSV3_DPRINTF3(...)     (void)(0)
 107 #endif
 108 
 109 #define RDSV3_DPRINTF2          rdsv3_dprintf2
 110 #define RDSV3_DPRINTF1          rdsv3_dprintf1
 111 #define RDSV3_DPRINTF0          rdsv3_dprintf0
 112 
 113 void rdsv3_dprintf2(
 114                 char            *name,
 115                 char            *fmt, ...);
 116 void rdsv3_dprintf1(
 117                 char            *name,
 118                 char            *fmt, ...);
 119 void rdsv3_dprintf0(
 120                 char            *name,
 121                 char            *fmt, ...);
 122 
 123 void rdsv3_trace(
 124                 char            *name,
 125                 uint8_t         lvl,
 126                 char            *fmt, ...);