|
@@ -194,8 +194,12 @@ static int dbg_autocolour ( unsigned long stream ) {
|
194
|
194
|
* @v stream Message stream ID
|
195
|
195
|
*/
|
196
|
196
|
void dbg_autocolourise ( unsigned long stream ) {
|
197
|
|
- dbg_printf ( "\033[%dm",
|
198
|
|
- ( stream ? ( DBGCOL_MIN + dbg_autocolour ( stream ) ) :0));
|
|
197
|
+
|
|
198
|
+ if ( DBGCOL_MIN ) {
|
|
199
|
+ dbg_printf ( "\033[%dm",
|
|
200
|
+ ( stream ?
|
|
201
|
+ ( DBGCOL_MIN + dbg_autocolour ( stream ) ) : 0));
|
|
202
|
+ }
|
199
|
203
|
}
|
200
|
204
|
|
201
|
205
|
/**
|
|
@@ -203,5 +207,7 @@ void dbg_autocolourise ( unsigned long stream ) {
|
203
|
207
|
*
|
204
|
208
|
*/
|
205
|
209
|
void dbg_decolourise ( void ) {
|
206
|
|
- dbg_printf ( "\033[0m" );
|
|
210
|
+
|
|
211
|
+ if ( DBGCOL_MIN )
|
|
212
|
+ dbg_printf ( "\033[0m" );
|
207
|
213
|
}
|