mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
debug: formatting code using astyle; remove unused code
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5c6909edf9
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Origin message was:
------------------
- debug: formatting code using astyle; remove unused code
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
int debug = DEBUG_NORMAL;
|
||||
|
||||
void setDebugLevel( int level )
|
||||
void setDebugLevel(int level)
|
||||
{
|
||||
debug = level;
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@
|
||||
#ifndef __neutrino_debug__
|
||||
#define __neutrino_debug__
|
||||
#include <zapit/debug.h>
|
||||
|
||||
extern int debug;
|
||||
|
||||
enum
|
||||
@@ -37,19 +38,8 @@ enum
|
||||
};
|
||||
|
||||
|
||||
void setDebugLevel( int level );
|
||||
void setDebugLevel(int level);
|
||||
|
||||
#if 0
|
||||
#define dprintf(debuglevel, fmt, args...) \
|
||||
do
|
||||
{ \
|
||||
if (debug >= debuglevel) \
|
||||
printf( "[neutrino] " fmt, ## args); \
|
||||
}
|
||||
while(0)
|
||||
#define dperror(str) {perror("[neutrino] " str);}
|
||||
#else
|
||||
// more thread save implementation
|
||||
#define dprintf(debuglevel, fmt, args...) \
|
||||
do { \
|
||||
if (debug >= debuglevel) \
|
||||
@@ -62,6 +52,5 @@ void setDebugLevel( int level );
|
||||
strerror_r(errno, errbuf, sizeof(errbuf)); \
|
||||
fprintf(stderr, "[neutrino] %s: %s\n", str, errbuf); \
|
||||
} while(0)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif // __neutrino_debug__
|
||||
|
Reference in New Issue
Block a user