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 -3
View File
@@ -50,7 +50,6 @@
#include "lcd.h"
#include "lcd_lib.h"
#include "shared/debug.h"
#include "report.h"
/* Defines a 6x8 font based on ISO 8859-15 */
@@ -278,11 +277,11 @@ imonlcd_init(Driver *drvthis)
/* Allocate, 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;
}