[beast: 2/6] SFI: use __func__ to print error messages
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 2/6] SFI: use __func__ to print error messages
- Date: Mon, 5 Oct 2015 22:51:37 +0000 (UTC)
commit 51823d91e405acae4113c2d40acc006a92ef1d2b
Author: Tim Janik <timj gnu org>
Date: Fri Sep 25 00:07:17 2015 +0200
SFI: use __func__ to print error messages
sfi/glib-extra.cc | 2 +-
sfi/sfiparams.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sfi/glib-extra.cc b/sfi/glib-extra.cc
index fdfd686..5a4d46e 100644
--- a/sfi/glib-extra.cc
+++ b/sfi/glib-extra.cc
@@ -1022,7 +1022,7 @@ GScanner*
g_scanner_new64 (const GScannerConfig *config_templ)
{
if (!config_templ->store_int64)
- g_error ("%s(): attempt to create 64bit scanner with store_int64==FALSE", G_STRFUNC);
+ g_error ("%s(): attempt to create 64bit scanner with store_int64==FALSE", __func__);
return g_scanner_new (config_templ);
}
diff --git a/sfi/sfiparams.cc b/sfi/sfiparams.cc
index 32e5677..e7c0ff1 100644
--- a/sfi/sfiparams.cc
+++ b/sfi/sfiparams.cc
@@ -817,7 +817,7 @@ sfi_enum_type_set_choice_value_getter (GType gtype,
{
assert_return (G_TYPE_IS_ENUM (gtype));
if (g_type_get_qdata (gtype, quark_tmp_choice_values) != NULL)
- g_warning ("%s: unsetting choice value getter of type `%s' while keeping old choice value references",
G_STRFUNC, g_type_name (gtype));
+ g_warning ("%s: unsetting choice value getter of type `%s' while keeping old choice value references",
__func__, g_type_name (gtype));
g_type_set_qdata (gtype, quark_enum_choice_value_getter, (void*) cvgetter);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]