OSDN Git Service

platform/x86: wmi: Fix printing info about WDG structure
authorPali Rohár <pali.rohar@gmail.com>
Sat, 10 Jun 2017 10:57:11 +0000 (12:57 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 13 Jun 2017 18:00:21 +0000 (11:00 -0700)
commitcd3921f88b82f1c89057b964338f6d10204c7abc
treeace7edd335c0979d49ee888134542540a930cff5
parenta63693a0e617636bd786c7d6bd114b37435e14ef
platform/x86: wmi: Fix printing info about WDG structure

object_id and notify_id are in one union structure and their meaning is
defined by flags. Therefore do not print notify_id for non-event block and
do not print object_id for event block. Remove also reserved member as it
does not have any defined meaning or type yet.

As object_id and notify_id union members overlaps and have different types,
it caused that kernel print to dmesg binary data. This patch eliminates it.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/wmi.c