xfs: print useful caller information in xfs_error_report
authorEric Sandeen <sandeen@redhat.com>
Thu, 27 Feb 2014 04:21:37 +0000 (15:21 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 27 Feb 2014 04:21:37 +0000 (15:21 +1100)
xfs_error_report used to just print the hex address of the caller;
%pF will give us something more human-readable.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_error.c

index a8b2ecb..edac5b0 100644 (file)
@@ -156,7 +156,7 @@ xfs_error_report(
 {
        if (level <= xfs_error_level) {
                xfs_alert_tag(mp, XFS_PTAG_ERROR_REPORT,
-               "Internal error %s at line %d of file %s.  Caller 0x%p",
+               "Internal error %s at line %d of file %s.  Caller %pF",
                            tag, linenum, filename, ra);
 
                xfs_stack_trace();