fat: Replace all printk with fat_msg()
[firefly-linux-kernel-4.4.55.git] / fs / fat / misc.c
index 3dcabc1bd8c374ea6d87a9d7e59ad7d358be4706..6d93360ca0ccec574f941dd72d2f4c32f94865b0 100644 (file)
@@ -73,15 +73,15 @@ int fat_clusters_flush(struct super_block *sb)
 
        bh = sb_bread(sb, sbi->fsinfo_sector);
        if (bh == NULL) {
-               printk(KERN_ERR "FAT: bread failed in fat_clusters_flush\n");
+               fat_msg(sb, KERN_ERR, "bread failed in fat_clusters_flush");
                return -EIO;
        }
 
        fsinfo = (struct fat_boot_fsinfo *)bh->b_data;
        /* Sanity check */
        if (!IS_FSINFO(fsinfo)) {
-               printk(KERN_ERR "FAT: Invalid FSINFO signature: "
-                      "0x%08x, 0x%08x (sector = %lu)\n",
+               fat_msg(sb, KERN_ERR, "Invalid FSINFO signature: "
+                      "0x%08x, 0x%08x (sector = %lu)",
                       le32_to_cpu(fsinfo->signature1),
                       le32_to_cpu(fsinfo->signature2),
                       sbi->fsinfo_sector);