diff --git a/glib/gutils.h b/glib/gutils.h
index 52b6297dc..333e2c5a4 100644
--- a/glib/gutils.h
+++ b/glib/gutils.h
@@ -191,7 +191,7 @@ gchar *g_format_size_full   (guint64          size,
 GLIB_AVAILABLE_IN_2_30
 gchar *g_format_size        (guint64          size);
 
-GLIB_DEPRECATED_FOR(g_format_size)
+GLIB_DEPRECATED_IN_2_30_FOR(g_format_size)
 gchar *g_format_size_for_display (goffset size);
 
 #ifndef G_DISABLE_DEPRECATED
