]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
logging: Minor log-message fixes
authorHans de Goede <hdegoede@redhat.com>
Wed, 16 Jan 2019 11:27:01 +0000 (12:27 +0100)
committerHans de Goede <hdegoede@redhat.com>
Sat, 23 Feb 2019 14:01:02 +0000 (15:01 +0100)
This fixes 2 minor issues with our log-messages:
1. ply_trace adds a "\n" itself, so there is no need to pass one extra.
2. Correct spelling of quitting

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/libply-splash-graphics/ply-animation.c
src/libply/ply-utils.c
src/main.c
src/plugins/renderers/drm/plugin.c

index 323d9edce9eda1289948fe4bddca3f8c02271627..9b6d8ce2e5fac84eb38479fddb990bab346c2268 100644 (file)
@@ -261,11 +261,11 @@ ply_animation_add_frames (ply_animation_t *animation)
 
         number_of_frames = ply_array_get_size (animation->frames);
         if (number_of_frames == 0) {
-                ply_trace ("%s directory had no files starting with %s\n",
+                ply_trace ("%s directory had no files starting with %s",
                            animation->image_dir, animation->frames_prefix);
                 goto out;
         } else {
-                ply_trace ("animation has %d frames\n", number_of_frames);
+                ply_trace ("animation has %d frames", number_of_frames);
         }
 
         load_finished = true;
index 4ff7b1b92741bda4c68d5f6c11bdb895f936d9af..0cadae962d66a871da9eb56014be34c3d7b25add 100644 (file)
@@ -656,7 +656,7 @@ ply_open_module (const char *module_path)
                                                  RTLD_NODELETE | RTLD_NOW | RTLD_LOCAL);
 
         if (handle == NULL) {
-                ply_trace ("Could not load module \"%s\": %s\n", module_path, dlerror ());
+                ply_trace ("Could not load module \"%s\": %s", module_path, dlerror ());
                 if (errno == 0)
                         errno = ELIBACC;
         }
index ddc18832ada187234b5cf4e119d51bb2f652ac20..9adff3a094d494371e6099c09c7166423fdef353 100644 (file)
@@ -1123,7 +1123,7 @@ load_devices (state_t                   *state,
 static void
 quit_splash (state_t *state)
 {
-        ply_trace ("quiting splash");
+        ply_trace ("quitting splash");
         if (state->boot_splash != NULL) {
                 ply_trace ("freeing splash");
                 ply_boot_splash_free (state->boot_splash);
index 0151f4738af71f92998597cd33704f063be51e19..88c9d978329703adb407cb07851118bab8ecc3b4 100644 (file)
@@ -1100,7 +1100,7 @@ get_preferred_mode (drmModeConnector *connector)
 
         for (i = 0; i < connector->count_modes; i++)
                 if (connector->modes[i].type & DRM_MODE_TYPE_PREFERRED) {
-                        ply_trace ("Found preferred mode %dx%d at index %d\n",
+                        ply_trace ("Found preferred mode %dx%d at index %d",
                                    connector->modes[i].hdisplay,
                                    connector->modes[i].vdisplay, i);
                         return &connector->modes[i];