media: saa7164: Fix driver name in debug output
authorBrad Love <brad@nextdimension.cc>
Fri, 4 May 2018 21:53:35 +0000 (17:53 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 9 May 2018 20:27:41 +0000 (16:27 -0400)
This issue was reported by a user who downloaded a corrupt saa7164
firmware, then went looking for a valid xc5000 firmware to fix the
error displayed...but the device in question has no xc5000, thus after
much effort, the wild goose chase eventually led to a support call.

The xc5000 has nothing to do with saa7164 (as far as I can tell),
so replace the string with saa7164 as well as give a meaningful
hint on the firmware mismatch.

Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/saa7164/saa7164-fw.c

index ef4906406ebf9aa67f527c9ac81707a1a786c373..a50461861133f7aebfe73c6b18a7f0dc3a1b201a 100644 (file)
@@ -426,7 +426,8 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev)
                        __func__, fw->size);
 
                if (fw->size != fwlength) {
-                       printk(KERN_ERR "xc5000: firmware incorrect size\n");
+                       printk(KERN_ERR "saa7164: firmware incorrect size %zu != %u\n",
+                               fw->size, fwlength);
                        ret = -ENOMEM;
                        goto out;
                }