diff options
-rw-r--r-- | drivers/acpi/ec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 8917d754020e..06c9f3520daa 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -139,26 +139,26 @@ static struct acpi_ec { | |||
139 | static inline u8 acpi_ec_read_status(struct acpi_ec *ec) | 139 | static inline u8 acpi_ec_read_status(struct acpi_ec *ec) |
140 | { | 140 | { |
141 | u8 x = inb(ec->command_addr); | 141 | u8 x = inb(ec->command_addr); |
142 | pr_debug(PREFIX "---> status = 0x%2x\n", x); | 142 | pr_debug(PREFIX "---> status = 0x%2.2x\n", x); |
143 | return x; | 143 | return x; |
144 | } | 144 | } |
145 | 145 | ||
146 | static inline u8 acpi_ec_read_data(struct acpi_ec *ec) | 146 | static inline u8 acpi_ec_read_data(struct acpi_ec *ec) |
147 | { | 147 | { |
148 | u8 x = inb(ec->data_addr); | 148 | u8 x = inb(ec->data_addr); |
149 | pr_debug(PREFIX "---> data = 0x%2x\n", x); | 149 | pr_debug(PREFIX "---> data = 0x%2.2x\n", x); |
150 | return inb(ec->data_addr); | 150 | return inb(ec->data_addr); |
151 | } | 151 | } |
152 | 152 | ||
153 | static inline void acpi_ec_write_cmd(struct acpi_ec *ec, u8 command) | 153 | static inline void acpi_ec_write_cmd(struct acpi_ec *ec, u8 command) |
154 | { | 154 | { |
155 | pr_debug(PREFIX "<--- command = 0x%2x\n", command); | 155 | pr_debug(PREFIX "<--- command = 0x%2.2x\n", command); |
156 | outb(command, ec->command_addr); | 156 | outb(command, ec->command_addr); |
157 | } | 157 | } |
158 | 158 | ||
159 | static inline void acpi_ec_write_data(struct acpi_ec *ec, u8 data) | 159 | static inline void acpi_ec_write_data(struct acpi_ec *ec, u8 data) |
160 | { | 160 | { |
161 | pr_debug(PREFIX "<--- data = 0x%2x\n", data); | 161 | pr_debug(PREFIX "<--- data = 0x%2.2x\n", data); |
162 | outb(data, ec->data_addr); | 162 | outb(data, ec->data_addr); |
163 | } | 163 | } |
164 | 164 | ||