Skip to content

Commit

Permalink
jfs: %pf is only for function pointers
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Scott Wood authored and Dave Kleikamp committed Mar 12, 2015
1 parent 09d3591 commit 7d2ac45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7d2ac45

Please sign in to comment.