Message ID | 1441819810-11762-2-git-send-email-coproscefalo@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
On Wed, Sep 09, 2015 at 11:30:09AM -0600, Azael Avalos wrote: > This patch adds the 0x prefix to the values printed by such function, the > values are already being printed in hex, but without the prefix, causing > confussion, even though the file under Documentation/ABI clearly states > that hey are hex values. > > Simply add the 0x prefix to avoid such confussion. > > Signed-off-by: Azael Avalos <coproscefalo@gmail.com> Queued to testing for 4.4.
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 9f7ced1..50a2116 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -1669,10 +1669,10 @@ static ssize_t available_kbd_modes_show(struct device *dev, struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); if (toshiba->kbd_type == 1) - return sprintf(buf, "%x %x\n", + return sprintf(buf, "0x%x 0x%x\n", SCI_KBD_MODE_FNZ, SCI_KBD_MODE_AUTO); - return sprintf(buf, "%x %x %x\n", + return sprintf(buf, "0x%x 0x%x 0x%x\n", SCI_KBD_MODE_AUTO, SCI_KBD_MODE_ON, SCI_KBD_MODE_OFF); } static DEVICE_ATTR_RO(available_kbd_modes);
This patch adds the 0x prefix to the values printed by such function, the values are already being printed in hex, but without the prefix, causing confussion, even though the file under Documentation/ABI clearly states that hey are hex values. Simply add the 0x prefix to avoid such confussion. Signed-off-by: Azael Avalos <coproscefalo@gmail.com> --- drivers/platform/x86/toshiba_acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)