]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: gs_fpgaboot: pr_err() strings should end with newlines
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 3 Oct 2017 11:43:23 +0000 (17:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Oct 2017 16:36:25 +0000 (18:36 +0200)
pr_err() messages should end with a new-line to avoid other messages
being concatenated.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gs_fpgaboot/gs_fpgaboot.c

index bcbdc7340b55026e6a49ced12e7a708c0523b353..fa8b27e091a2713db4939d14f0e4008f6bcccefa 100644 (file)
@@ -106,7 +106,7 @@ static int readmagic_bitstream(u8 *bitdata, int *offset)
        read_bitstream(bitdata, buf, offset, 13);
        r = memcmp(buf, bits_magic, 13);
        if (r) {
-               pr_err("error: corrupted header");
+               pr_err("error: corrupted header\n");
                return -EINVAL;
        }
        pr_info("bitstream file magic number Ok\n");