]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
xilinx_devcfg: Fix "sync word" messages xilinx-v2013.4
authorMike Looijmans <mike.looijmans@topic.nl>
Thu, 19 Dec 2013 13:41:08 +0000 (14:41 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 19 Dec 2013 13:43:50 +0000 (14:43 +0100)
When (partially) programming the PL, the driver outputs unwanted
messages like "Found normal sync word".

Replace use of "default" printk with pr_debug. This surpresses the
message until explicitly asked for.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/char/xilinx_devcfg.c

index ebd701daa0d98ba471493fb319cfbd090c51410f..b45aca3d1f8f8faa950ab02bd966cfa2fbc33a65 100644 (file)
@@ -285,12 +285,12 @@ xdevcfg_write(struct file *file, const char __user *buf, size_t count,
                /* Look for sync word */
                for (i = 0; i < count - 4; i++) {
                        if (memcmp(kbuf + i, "\x66\x55\x99\xAA", 4) == 0) {
-                               printk("Found normal sync word\n");
+                               pr_debug("Found normal sync word\n");
                                drvdata->endian_swap = 0;
                                break;
                        }
                        if (memcmp(kbuf + i, "\xAA\x99\x55\x66", 4) == 0) {
-                               printk("Found swapped sync word\n");
+                               pr_debug("Found swapped sync word\n");
                                drvdata->endian_swap = 1;
                                break;
                        }