summaryrefslogtreecommitdiff
path: root/tests/ubi-tests/common.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-08-19 10:07:49 -0700
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-08-23 09:27:48 +0300
commit988ecf93887b54f225f0f29235f3b32f92b1ea31 (patch)
tree7bf654a8744b07f250c0c894f495260e02301ac0 /tests/ubi-tests/common.c
parentf5518639f329bbb88ace9b301bd77d22d2c179c5 (diff)
mtd-utils: use __func__ instead of __FUNCTION__
__func__ is more portable Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'tests/ubi-tests/common.c')
-rw-r--r--tests/ubi-tests/common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ubi-tests/common.c b/tests/ubi-tests/common.c
index 05cbecc..a64ea75 100644
--- a/tests/ubi-tests/common.c
+++ b/tests/ubi-tests/common.c
@@ -54,24 +54,24 @@ int __initial_check(const char *test, int argc, char * const argv[])
* check this.
*/
if (argc < 2) {
- __errmsg(test, __FUNCTION__, __LINE__,
+ __errmsg(test, __func__, __LINE__,
"UBI character device node is not specified");
return -1;
}
libubi = libubi_open();
if (libubi == NULL) {
- __failed(test, __FUNCTION__, __LINE__, "libubi_open");
+ __failed(test, __func__, __LINE__, "libubi_open");
return -1;
}
if (ubi_get_dev_info(libubi, argv[1], &dev_info)) {
- __failed(test, __FUNCTION__, __LINE__, "ubi_get_dev_info");
+ __failed(test, __func__, __LINE__, "ubi_get_dev_info");
goto close;
}
if (dev_info.avail_lebs < MIN_AVAIL_EBS) {
- __errmsg(test, __FUNCTION__, __LINE__,
+ __errmsg(test, __func__, __LINE__,
"insufficient available eraseblocks %d on UBI "
"device, required %d",
dev_info.avail_lebs, MIN_AVAIL_EBS);
@@ -79,7 +79,7 @@ int __initial_check(const char *test, int argc, char * const argv[])
}
if (dev_info.vol_count != 0) {
- __errmsg(test, __FUNCTION__, __LINE__,
+ __errmsg(test, __func__, __LINE__,
"device %s is not empty", argv[1]);
goto close;
}