diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-05-07 05:47:53 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-05-11 05:54:58 -0400 |
commit | 3c6acb614d841cafbcfc3d3015400b0f6849b7af (patch) | |
tree | 6c3a754e7b7d9efc618b78025f0b748426cdb72f /drivers/net/wireless/iwlwifi/pcie | |
parent | 017a64161f6d082f6e3ed85646217bd7217af15a (diff) |
iwlwifi: add missing trailing newlines to debug messages
All messages should have a trailing newline, add all the
missing ones. Also make all messages constants, replacing
the single one that pointlessly used a variable.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/pcie')
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/drv.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/drv.c b/drivers/net/wireless/iwlwifi/pcie/drv.c index 3d1d57f9f5bc..7091a18d5a72 100644 --- a/drivers/net/wireless/iwlwifi/pcie/drv.c +++ b/drivers/net/wireless/iwlwifi/pcie/drv.c | |||
@@ -417,7 +417,7 @@ static u64 splx_get_pwr_limit(struct iwl_trans *trans, union acpi_object *splx) | |||
417 | splx->package.count != 2 || | 417 | splx->package.count != 2 || |
418 | splx->package.elements[0].type != ACPI_TYPE_INTEGER || | 418 | splx->package.elements[0].type != ACPI_TYPE_INTEGER || |
419 | splx->package.elements[0].integer.value != 0) { | 419 | splx->package.elements[0].integer.value != 0) { |
420 | IWL_ERR(trans, "Unsupported splx structure"); | 420 | IWL_ERR(trans, "Unsupported splx structure\n"); |
421 | return 0; | 421 | return 0; |
422 | } | 422 | } |
423 | 423 | ||
@@ -426,14 +426,14 @@ static u64 splx_get_pwr_limit(struct iwl_trans *trans, union acpi_object *splx) | |||
426 | limits->package.count < 2 || | 426 | limits->package.count < 2 || |
427 | limits->package.elements[0].type != ACPI_TYPE_INTEGER || | 427 | limits->package.elements[0].type != ACPI_TYPE_INTEGER || |
428 | limits->package.elements[1].type != ACPI_TYPE_INTEGER) { | 428 | limits->package.elements[1].type != ACPI_TYPE_INTEGER) { |
429 | IWL_ERR(trans, "Invalid limits element"); | 429 | IWL_ERR(trans, "Invalid limits element\n"); |
430 | return 0; | 430 | return 0; |
431 | } | 431 | } |
432 | 432 | ||
433 | domain_type = &limits->package.elements[0]; | 433 | domain_type = &limits->package.elements[0]; |
434 | power_limit = &limits->package.elements[1]; | 434 | power_limit = &limits->package.elements[1]; |
435 | if (!(domain_type->integer.value & SPL_DOMAINTYPE_WIFI)) { | 435 | if (!(domain_type->integer.value & SPL_DOMAINTYPE_WIFI)) { |
436 | IWL_DEBUG_INFO(trans, "WiFi power is not limited"); | 436 | IWL_DEBUG_INFO(trans, "WiFi power is not limited\n"); |
437 | return 0; | 437 | return 0; |
438 | } | 438 | } |
439 | 439 | ||
@@ -450,26 +450,26 @@ static void set_dflt_pwr_limit(struct iwl_trans *trans, struct pci_dev *pdev) | |||
450 | pxsx_handle = ACPI_HANDLE(&pdev->dev); | 450 | pxsx_handle = ACPI_HANDLE(&pdev->dev); |
451 | if (!pxsx_handle) { | 451 | if (!pxsx_handle) { |
452 | IWL_DEBUG_INFO(trans, | 452 | IWL_DEBUG_INFO(trans, |
453 | "Could not retrieve root port ACPI handle"); | 453 | "Could not retrieve root port ACPI handle\n"); |
454 | return; | 454 | return; |
455 | } | 455 | } |
456 | 456 | ||
457 | /* Get the method's handle */ | 457 | /* Get the method's handle */ |
458 | status = acpi_get_handle(pxsx_handle, (acpi_string)SPL_METHOD, &handle); | 458 | status = acpi_get_handle(pxsx_handle, (acpi_string)SPL_METHOD, &handle); |
459 | if (ACPI_FAILURE(status)) { | 459 | if (ACPI_FAILURE(status)) { |
460 | IWL_DEBUG_INFO(trans, "SPL method not found"); | 460 | IWL_DEBUG_INFO(trans, "SPL method not found\n"); |
461 | return; | 461 | return; |
462 | } | 462 | } |
463 | 463 | ||
464 | /* Call SPLC with no arguments */ | 464 | /* Call SPLC with no arguments */ |
465 | status = acpi_evaluate_object(handle, NULL, NULL, &splx); | 465 | status = acpi_evaluate_object(handle, NULL, NULL, &splx); |
466 | if (ACPI_FAILURE(status)) { | 466 | if (ACPI_FAILURE(status)) { |
467 | IWL_ERR(trans, "SPLC invocation failed (0x%x)", status); | 467 | IWL_ERR(trans, "SPLC invocation failed (0x%x)\n", status); |
468 | return; | 468 | return; |
469 | } | 469 | } |
470 | 470 | ||
471 | trans->dflt_pwr_limit = splx_get_pwr_limit(trans, splx.pointer); | 471 | trans->dflt_pwr_limit = splx_get_pwr_limit(trans, splx.pointer); |
472 | IWL_DEBUG_INFO(trans, "Default power limit set to %lld", | 472 | IWL_DEBUG_INFO(trans, "Default power limit set to %lld\n", |
473 | trans->dflt_pwr_limit); | 473 | trans->dflt_pwr_limit); |
474 | kfree(splx.pointer); | 474 | kfree(splx.pointer); |
475 | } | 475 | } |