Patchwork [1/8] acpi: syntaxcheck: reformat warning messages

login
register
mail settings
Submitter Colin King
Date Feb. 27, 2013, 2:40 p.m.
Message ID <1361976054-28357-2-git-send-email-colin.king@canonical.com>
Download mbox | patch
Permalink /patch/223613/
State Accepted
Headers show

Comments

Colin King - Feb. 27, 2013, 2:40 p.m.
From: Colin Ian King <colin.king@canonical.com>

Indicate warning level in parentheses

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 src/acpi/syntaxcheck/syntaxcheck.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Alex Hung - March 4, 2013, 8:47 a.m.
On 02/27/2013 10:40 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Indicate warning level in parentheses
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   src/acpi/syntaxcheck/syntaxcheck.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/acpi/syntaxcheck/syntaxcheck.c b/src/acpi/syntaxcheck/syntaxcheck.c
> index 2e111e1..5aee063 100644
> --- a/src/acpi/syntaxcheck/syntaxcheck.c
> +++ b/src/acpi/syntaxcheck/syntaxcheck.c
> @@ -71,9 +71,9 @@ static const char *syntaxcheck_error_level(uint32_t error_code)
>   	uint16_t error_level  = (error_code / 1000) - 1;
>
>   	static char *error_levels[] = {
> -		"warning level 0",
> -		"warning level 1",
> -		"warning level 2",
> +		"warning (level 0)",
> +		"warning (level 1)",
> +		"warning (level 2)",
>   		"error",
>   		"unknown",
>   	};
>
Acked-by: Alex Hung <alex.hung@canonical.com>
Keng-Yu Lin - March 5, 2013, 8:03 a.m.
On Wed, Feb 27, 2013 at 10:40 PM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Indicate warning level in parentheses
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  src/acpi/syntaxcheck/syntaxcheck.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/acpi/syntaxcheck/syntaxcheck.c b/src/acpi/syntaxcheck/syntaxcheck.c
> index 2e111e1..5aee063 100644
> --- a/src/acpi/syntaxcheck/syntaxcheck.c
> +++ b/src/acpi/syntaxcheck/syntaxcheck.c
> @@ -71,9 +71,9 @@ static const char *syntaxcheck_error_level(uint32_t error_code)
>         uint16_t error_level  = (error_code / 1000) - 1;
>
>         static char *error_levels[] = {
> -               "warning level 0",
> -               "warning level 1",
> -               "warning level 2",
> +               "warning (level 0)",
> +               "warning (level 1)",
> +               "warning (level 2)",
>                 "error",
>                 "unknown",
>         };
> --
> 1.8.1.2
>
Acked-by: Keng-Yu Lin <kengyu@canonical.com>

Patch

diff --git a/src/acpi/syntaxcheck/syntaxcheck.c b/src/acpi/syntaxcheck/syntaxcheck.c
index 2e111e1..5aee063 100644
--- a/src/acpi/syntaxcheck/syntaxcheck.c
+++ b/src/acpi/syntaxcheck/syntaxcheck.c
@@ -71,9 +71,9 @@  static const char *syntaxcheck_error_level(uint32_t error_code)
 	uint16_t error_level  = (error_code / 1000) - 1;
 
 	static char *error_levels[] = {
-		"warning level 0",
-		"warning level 1",
-		"warning level 2",
+		"warning (level 0)",
+		"warning (level 1)",
+		"warning (level 2)",
 		"error",
 		"unknown",
 	};