Michael Holzheu eda4ddf7e3 s390/ipl: Fix FCP WWPN and LUN format strings for read
The following git commit changed the behavior of sscanf:

commit 53809751ac230a3611b5cdd375f3389f3207d471
Author: Jan Beulich <JBeulich@suse.com>
Date:   Mon Dec 17 16:01:31 2012 -0800
    sscanf: don't ignore field widths for numeric conversions

This broke the WWPN and LUN sysfs attributes for s390 reipl and dump
on panic.

Example:

$ echo 0x0123456701234567 > /sys/firmware/reipl/fcp/wwpn
$ cat /sys/firmware/reipl/fcp/wwpn
0x0001234567012345

So fix this and use format strings that work also with the
new sscanf implementation:

$ echo 0x012345670123456789 > /sys/firmware/reipl/fcp/wwpn
$ cat /sys/firmware/reipl/fcp/wwpn
0x0123456701234567

Cc: stable@vger.kernel.org # 3.8+
Reviewed-by: Steffen Maier <maier@linux.vnet.ibm.com>
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2013-06-24 11:16:34 +02:00
..
2012-05-16 14:42:41 +02:00
2013-03-03 23:00:27 -05:00
2013-03-03 23:00:27 -05:00
2011-01-05 12:47:31 +01:00
2013-05-15 13:09:09 +02:00
2012-11-23 11:14:31 +01:00
2013-05-15 13:09:09 +02:00
2013-05-15 13:09:09 +02:00
2013-02-28 09:37:13 +01:00
2013-04-08 17:39:27 +02:00
2012-09-26 15:45:21 +02:00
2013-06-05 17:36:21 +02:00
2013-05-27 09:16:15 +02:00
2013-01-08 10:57:10 +01:00
2013-04-17 14:07:28 +02:00
2013-04-08 17:39:27 +02:00