xen/common: Replace __FUNCTION__ with __func__
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 3 Feb 2017 20:51:11 +0000 (20:51 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 7 Feb 2017 13:30:32 +0000 (13:30 +0000)
__func__ is standard C99, whereas __FUNCTION__ is a GCCism.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/grant_table.c
xen/common/libelf/libelf-loader.c
xen/common/wait.c
xen/include/acpi/platform/acgcc.h

index 1b7d23647cb3146a318a8bf5fced15a3a247abb7..d3ea805bf1d96f822482446513416ae34ab3081c 100644 (file)
@@ -3547,10 +3547,10 @@ static void gnttab_usage_print(struct domain *rd)
 static void gnttab_usage_print_all(unsigned char key)
 {
     struct domain *d;
-    printk("%s [ key '%c' pressed\n", __FUNCTION__, key);
+    printk("%s [ key '%c' pressed\n", __func__, key);
     for_each_domain ( d )
         gnttab_usage_print(d);
-    printk("%s ] done\n", __FUNCTION__);
+    printk("%s ] done\n", __func__);
 }
 
 static int __init gnttab_usage_init(void)
index a72cd8a274fe7d64b546c4b0af0a464a4b2faef5..1644f16011625cb0ffd54e1a2c8925172bea1076 100644 (file)
@@ -536,12 +536,12 @@ uint64_t elf_lookup_addr(struct elf_binary * elf, const char *symbol)
     sym = elf_sym_by_name(elf, symbol);
     if ( !ELF_HANDLE_VALID(sym) )
     {
-        elf_err(elf, "%s: not found: %s\n", __FUNCTION__, symbol);
+        elf_err(elf, "%s: not found: %s\n", __func__, symbol);
         return -1;
     }
 
     value = elf_uval(elf, sym, st_value);
-    elf_msg(elf, "%s: symbol \"%s\" at 0x%" PRIx64 "\n", __FUNCTION__,
+    elf_msg(elf, "%s: symbol \"%s\" at 0x%" PRIx64 "\n", __func__,
             symbol, value);
     return value;
 }
index 4ac98c07feec1e1d327efe5def978dd5ab692860..89cfc0626e79068a20db4e722553d7665921d028 100644 (file)
@@ -155,7 +155,7 @@ static void __prepare_to_wait(struct waitqueue_vcpu *wqv)
 
     if ( unlikely(wqv->esp == 0) )
     {
-        gdprintk(XENLOG_ERR, "Stack too large in %s\n", __FUNCTION__);
+        gdprintk(XENLOG_ERR, "Stack too large in %s\n", __func__);
         domain_crash_synchronous();
     }
 
index 3bb50494a38a03a590f43c25ff619b5fe6c8f29d..b355e98eeb8375ab4da90579261038bfdf624be7 100644 (file)
@@ -46,7 +46,7 @@
 
 /* Function name is used for debug output. Non-ANSI, compiler-dependent */
 
-#define ACPI_GET_FUNCTION_NAME          __FUNCTION__
+#define ACPI_GET_FUNCTION_NAME          __func__
 
 /*
  * This macro is used to tag functions as "printf-like" because