[PATCH umr] Fix copy/paste error in error message

Deucher, Alexander Alexander.Deucher at amd.com
Thu Jun 22 14:07:15 UTC 2017


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Tom St Denis
> Sent: Thursday, June 22, 2017 9:38 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: StDenis, Tom
> Subject: [PATCH umr] Fix copy/paste error in error message
> 
> Also fix a couple of error message style deviations.
> 
> Signed-off-by: Tom St Denis <tom.stdenis at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/lib/mmio.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/lib/mmio.c b/src/lib/mmio.c
> index f0737c43913a..987704cb9944 100644
> --- a/src/lib/mmio.c
> +++ b/src/lib/mmio.c
> @@ -39,7 +39,7 @@ static uint32_t umr_smc_read(struct umr_asic *asic,
> uint64_t addr)
>  				umr_write_reg_by_name(asic,
> "mmMP0PUB_IND_INDEX_1", addr);
>  				return umr_read_reg_by_name(asic,
> "mmMP0PUB_IND_DATA_1");
>  			default:
> -				fprintf(stderr, "[BUG] Unsupported family
> type in umr_smc_read()\n");
> +				fprintf(stderr, "[BUG]: Unsupported family
> type in umr_smc_read()\n");
>  				return 0;
>  		}
>  	} else {
> @@ -66,7 +66,7 @@ static uint32_t umr_smc_write(struct umr_asic *asic,
> uint64_t addr, uint32_t val
>  				umr_write_reg_by_name(asic,
> "mmMP0PUB_IND_INDEX_1", addr);
>  				return umr_write_reg_by_name(asic,
> "mmMP0PUB_IND_DATA_1", value);
>  			default:
> -				fprintf(stderr, "[BUG] Unsupported family
> type in umr_smc_read()\n");
> +				fprintf(stderr, "[BUG]: Unsupported family
> type in umr_smc_write()\n");
>  				return -1;
>  		}
>  	} else {
> @@ -103,7 +103,7 @@ uint32_t umr_read_reg(struct umr_asic *asic,
> uint64_t addr, enum regclass type)
>  		case REG_SMC:
>  			return umr_smc_read(asic, addr);
>  		default:
> -			fprintf(stderr, "[BUG] Unsupported register type in
> umr_read_reg().\n");
> +			fprintf(stderr, "[BUG]: Unsupported register type in
> umr_read_reg().\n");
>  			return 0;
>  	}
>  }
> @@ -131,7 +131,7 @@ int umr_write_reg(struct umr_asic *asic, uint64_t
> addr, uint32_t value, enum reg
>  		case REG_SMC:
>  			return umr_smc_write(asic, addr, value);
>  		default:
> -			fprintf(stderr, "[BUG] Unsupported register type in
> umr_write_reg().\n");
> +			fprintf(stderr, "[BUG]: Unsupported register type in
> umr_write_reg().\n");
>  			return -1;
>  	}
>  	return 0;
> --
> 2.12.0
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list