diff mbox

[PATCHv2,1/2] validation: common: print odp_init failures to stderr

Message ID 1427995268-20530-1-git-send-email-stuart.haslam@linaro.org
State Accepted
Commit bab9eb3e9208570ec8eefe718c9cdf671450cfd3
Headers show

Commit Message

Stuart Haslam April 2, 2015, 5:21 p.m. UTC
Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
---
 test/validation/common/odp_cunit_common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Maxim Uvarov April 2, 2015, 5:55 p.m. UTC | #1
Merged,

patches before rebase were reviewed by Bill, added his review to git commit.

Thanks,
Maxim.

On 04/02/15 20:21, Stuart Haslam wrote:
> Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
> ---
>   test/validation/common/odp_cunit_common.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/test/validation/common/odp_cunit_common.c b/test/validation/common/odp_cunit_common.c
> index 83e5026..7359ce3 100644
> --- a/test/validation/common/odp_cunit_common.c
> +++ b/test/validation/common/odp_cunit_common.c
> @@ -57,11 +57,11 @@ int main(void)
>   	printf("\tODP implementation version: %s\n", odp_version_impl_str());
>   
>   	if (0 != odp_init_global(NULL, NULL)) {
> -		printf("odp_init_global fail.\n");
> +		fprintf(stderr, "error: odp_init_global() failed.\n");
>   		return -1;
>   	}
>   	if (0 != odp_init_local()) {
> -		printf("odp_init_local fail.\n");
> +		fprintf(stderr, "error: odp_init_local() failed.\n");
>   		return -1;
>   	}
>
diff mbox

Patch

diff --git a/test/validation/common/odp_cunit_common.c b/test/validation/common/odp_cunit_common.c
index 83e5026..7359ce3 100644
--- a/test/validation/common/odp_cunit_common.c
+++ b/test/validation/common/odp_cunit_common.c
@@ -57,11 +57,11 @@  int main(void)
 	printf("\tODP implementation version: %s\n", odp_version_impl_str());
 
 	if (0 != odp_init_global(NULL, NULL)) {
-		printf("odp_init_global fail.\n");
+		fprintf(stderr, "error: odp_init_global() failed.\n");
 		return -1;
 	}
 	if (0 != odp_init_local()) {
-		printf("odp_init_local fail.\n");
+		fprintf(stderr, "error: odp_init_local() failed.\n");
 		return -1;
 	}