panic: declare as printf-style-checked
. and related fixes Change-Id: I5131ac57dc53d8aec8d421a34c5ceea383404d7a
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user