ALSA: compress: fix some missing and misplaced \n in messages
authorColin Ian King <colin.king@canonical.com>
Fri, 16 Sep 2016 16:46:41 +0000 (17:46 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 16 Sep 2016 17:24:13 +0000 (19:24 +0200)
Fix a missing \n in a pr_debug message and move the \n to the end
of a pr_err message.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/compress_offload.c

index 583d4076903a62ac3a920399dbd3b52ac57e0e3f..fec1dfdb14adfa7c7edc9f7aa2aba35c9e0cb2a5 100644 (file)
@@ -780,7 +780,7 @@ static int snd_compress_wait_for_drain(struct snd_compr_stream *stream)
        ret = wait_event_interruptible(stream->runtime->sleep,
                        (stream->runtime->state != SNDRV_PCM_STATE_DRAINING));
        if (ret == -ERESTARTSYS)
-               pr_debug("wait aborted by a signal");
+               pr_debug("wait aborted by a signal\n");
        else if (ret)
                pr_debug("wait for drain failed with %d\n", ret);
 
@@ -962,7 +962,7 @@ static int snd_compress_dev_register(struct snd_device *device)
                                  compr->card, compr->device,
                                  &snd_compr_file_ops, compr, &compr->dev);
        if (ret < 0) {
-               pr_err("snd_register_device failed\n %d", ret);
+               pr_err("snd_register_device failed %d\n", ret);
                return ret;
        }
        return ret;