Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: Update Container hotplug error messages

Updated Container hotplug error messages with acpi_handle_<level>()
and pr_<level>(). Removed an unnecessary check to the device arg
in acpi_container_add().

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Toshi Kani and committed by
Rafael J. Wysocki
3d78bd9e ab6c5709

+2 -8
+2 -8
drivers/acpi/container.c
··· 110 110 { 111 111 struct acpi_container *container; 112 112 113 - 114 - if (!device) { 115 - printk(KERN_ERR PREFIX "device is NULL\n"); 116 - return -EINVAL; 117 - } 118 - 119 113 container = kzalloc(sizeof(struct acpi_container), GFP_KERNEL); 120 114 if (!container) 121 115 return -ENOMEM; ··· 171 177 case ACPI_NOTIFY_BUS_CHECK: 172 178 /* Fall through */ 173 179 case ACPI_NOTIFY_DEVICE_CHECK: 174 - printk(KERN_WARNING "Container driver received %s event\n", 180 + pr_debug("Container driver received %s event\n", 175 181 (type == ACPI_NOTIFY_BUS_CHECK) ? 176 182 "ACPI_NOTIFY_BUS_CHECK" : "ACPI_NOTIFY_DEVICE_CHECK"); 177 183 ··· 192 198 193 199 result = container_device_add(&device, handle); 194 200 if (result) { 195 - printk(KERN_WARNING "Failed to add container\n"); 201 + acpi_handle_warn(handle, "Failed to add container\n"); 196 202 break; 197 203 } 198 204