[beast: 4/6] GXK: use __func__ to print error messages
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 4/6] GXK: use __func__ to print error messages
- Date: Mon, 5 Oct 2015 22:51:47 +0000 (UTC)
commit 05d5d957e20cae0f96445da6337c9c9bc056f2ba
Author: Tim Janik <timj gnu org>
Date: Fri Sep 25 00:07:35 2015 +0200
GXK: use __func__ to print error messages
beast-gtk/gxk/gxkimagecache.cc | 2 +-
beast-gtk/gxk/gxkparam.cc | 2 +-
beast-gtk/gxk/gxkutils.cc | 3 +--
3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/beast-gtk/gxk/gxkimagecache.cc b/beast-gtk/gxk/gxkimagecache.cc
index 93ebd10..b701260 100644
--- a/beast-gtk/gxk/gxkimagecache.cc
+++ b/beast-gtk/gxk/gxkimagecache.cc
@@ -180,5 +180,5 @@ gxk_image_cache_unuse_pixmap (GdkPixmap *pixmap)
return;
}
}
- g_warning ("%s: no such pixmap: %p", G_STRFUNC, pixmap);
+ g_warning ("%s: no such pixmap: %p", __func__, pixmap);
}
diff --git a/beast-gtk/gxk/gxkparam.cc b/beast-gtk/gxk/gxkparam.cc
index bd0c211..3103d36 100644
--- a/beast-gtk/gxk/gxkparam.cc
+++ b/beast-gtk/gxk/gxkparam.cc
@@ -201,7 +201,7 @@ gxk_param_apply_value (GxkParam *param)
assert_return (GXK_IS_PARAM (param));
if (param->updating)
{
- g_warning ("%s: param (%p) currently in update", G_STRFUNC, param);
+ g_warning ("%s: param (%p) currently in update", __func__, param);
return;
}
if (param->binding->set_value && param->editable && param->sensitive)
diff --git a/beast-gtk/gxk/gxkutils.cc b/beast-gtk/gxk/gxkutils.cc
index 0fe531f..f872eea 100644
--- a/beast-gtk/gxk/gxkutils.cc
+++ b/beast-gtk/gxk/gxkutils.cc
@@ -3178,8 +3178,7 @@ gxk_label_set_attributes (GtkLabel *label,
attr = pango_attr_scale_new (va_arg (args, gdouble));
break;
default:
- g_warning ("%s: invalid PangoAttribute type %d",
- G_STRFUNC, attr_type);
+ g_warning ("%s: invalid PangoAttribute type %d", __func__, attr_type);
case -1:
case PANGO_ATTR_INVALID:
attr = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]