{
struct journal_driver *j = journal_driver_cast (driver);
- if ( !j->destroyed)
+ if (!j->destroyed)
journal_close ();
j->destroyed = true;
static void
journal_output (struct journal_driver *j, const char *s)
{
- if ( j->file == NULL)
+ if (j->file == NULL)
return;
fprintf (j->file, "%s\n", s);
else if (is_message_item (item))
{
const struct message_item *message_item = to_message_item (item);
- const struct msg *msg = message_item_get_msg (message_item);
- char *s = msg_to_string (msg, message_item->command_name);
+ char *s = msg_to_string (message_item_get_msg (message_item));
journal_output (j, s);
free (s);
}