jfs: %pf is only for function pointers
authorScott Wood <scottwood@freescale.com>
Thu, 12 Mar 2015 03:13:54 +0000 (22:13 -0500)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 12 Mar 2015 17:32:19 +0000 (12:32 -0500)
Use %ps for actual addresses, otherwise you'll get bad output
on arches like ppc64 where %pf expects a function descriptor.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: jfs-discussion@lists.sourceforge.net
fs/jfs/super.c

index 5d30c56ae07506f09f92d11d02b03a39213a0797..4cd9798f4948c646d065c50dd0f6092fe75197b0 100644 (file)
@@ -102,7 +102,7 @@ void jfs_error(struct super_block *sb, const char *fmt, ...)
        vaf.fmt = fmt;
        vaf.va = &args;
 
-       pr_err("ERROR: (device %s): %pf: %pV\n",
+       pr_err("ERROR: (device %s): %ps: %pV\n",
               sb->s_id, __builtin_return_address(0), &vaf);
 
        va_end(args);