diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-19 17:21:50 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-19 17:21:50 +0000 |
commit | b2b1a2097444d24126d636778d16aae1c5d2370e (patch) | |
tree | 41030a055bf2bdd6e69019e92e8ffa38ffa523b8 /gcc/plugin.c | |
parent | 4d5c38fc8df3eb086dda3acfbe37ec06d7683698 (diff) | |
download | gcc-b2b1a2097444d24126d636778d16aae1c5d2370e.tar.gz |
2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
* gcc/plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
(dump_active_plugins): output to file everything. Use
internationalized dump & FMT_FOR_PLUGIN_EVENT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154337 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/plugin.c')
-rw-r--r-- | gcc/plugin.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/plugin.c b/gcc/plugin.c index 2d64422787e..bb967c385fe 100644 --- a/gcc/plugin.c +++ b/gcc/plugin.c @@ -64,6 +64,9 @@ const char *plugin_event_name[] = "PLUGIN_EVENT_LAST" }; +/* A printf format large enough for the largest event above. */ +#define FMT_FOR_PLUGIN_EVENT "%-26s" + /* Hash table for the plugin_name_args objects created during command-line parsing. */ static htab_t plugin_name_args_tab = NULL; @@ -637,18 +640,18 @@ dump_active_plugins (FILE *file) if (!plugins_active_p ()) return; - fprintf (stderr, "Event\t\t\tPlugins\n"); + fprintf (file, FMT_FOR_PLUGIN_EVENT " | %s\n", _("Event"), _("Plugins")); for (event = PLUGIN_PASS_MANAGER_SETUP; event < PLUGIN_EVENT_LAST; event++) if (plugin_callbacks[event]) { struct callback_info *ci; - fprintf (file, "%s\t", plugin_event_name[event]); + fprintf (file, FMT_FOR_PLUGIN_EVENT " |", plugin_event_name[event]); for (ci = plugin_callbacks[event]; ci; ci = ci->next) - fprintf (file, "%s ", ci->plugin_name); + fprintf (file, " %s", ci->plugin_name); - fprintf (file, "\n"); + putc('\n', file); } } |