Teach all drivers to use local report.h instead of shared/report.h.

Remove all references to shared/debug.h as well (was unused in all cases).
This commit is contained in:
mmdolze
2009-09-14 18:36:44 +00:00
parent de8278a398
commit 6e781ed0a0
10 changed files with 9 additions and 23 deletions
+2 -4
View File
@@ -42,8 +42,6 @@
#include "lcd.h"
#include "lcd_lib.h"
#include "shared/debug.h"
//#define DEBUG
#include "report.h"
@@ -123,12 +121,12 @@ MODULE_EXPORT int imon_init (Driver *drvthis)
// Alocate, initialize and store private p
p = (PrivateData *) calloc(1, sizeof(PrivateData));
if (p == NULL) {
debug(RPT_ERR, "%s: failed to allocate private data", drvthis->name);
report(RPT_ERR, "%s: failed to allocate private data", drvthis->name);
return -1;
}
if (drvthis->store_private_ptr(drvthis, p)) {
debug(RPT_ERR, "%s: failed to store private data pointer", drvthis->name);
report(RPT_ERR, "%s: failed to store private data pointer", drvthis->name);
return -1;
}