panic: declare as printf-style-checked

. and related fixes

Change-Id: I5131ac57dc53d8aec8d421a34c5ceea383404d7a
This commit is contained in:
Ben Gras
2013-02-02 00:55:35 +00:00
parent 5507a12d7c
commit 2d2a1a077d
22 changed files with 30 additions and 29 deletions

View File

@@ -128,7 +128,7 @@ int devman_add_device(struct devman_dev *dev)
}
if (msg.DEVMAN_RESULT != 0) {
panic("devman_add_device: could add device: %d",
panic("devman_add_device: could add device: %ld",
msg.DEVMAN_RESULT);
}
@@ -168,7 +168,7 @@ int devman_del_device(struct devman_dev *dev)
}
if (msg.DEVMAN_RESULT != 0) {
panic("devman_del_device: could delete device: %d",
panic("devman_del_device: could delete device: %ld",
msg.DEVMAN_RESULT);
}

View File

@@ -11,7 +11,7 @@
#include "local.h"
#define CHECKOUTOFMEM(ptr) if(ptr == NULL) \
panic("Out of memory! (%s, line %d)" \
panic("Out of memory! (%s, line %d)", \
__FILE__, __LINE__)