# Pastebin rGwGLvXI if (g_strcmp0 (event, "applied") == 0) { g_autofree gchar *body = NULL; gchar *endptr; errno = 0; guint64 num_updates = g_ascii_strtoull (description, &endptr, 10); if ((num_updates == G_MAXUINT64 && errno == ERANGE) || (num_updates == 0 && description == endptr)) { g_warning ("Failed to parse the status file"); } else if (num_updates != 0) { body = g_strdup_printf ( ngettext ("%" G_GUINT64_FORMAT " Livepatch update has been successfully applied.", "%" G_GUINT64_FORMAT " Livepatch updates have been successfully applied.", num_updates), num_updates); show_notification (_("Canonical Livepatch"), body, NULL); } }