From 8820fd159abb84c50a6533c9787a9f2ae90fec51 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Tue, 25 Oct 2016 17:21:26 -0600 Subject: [PATCH] gp2y0a: fix context allocation error message Signed-off-by: Jon Trulson --- src/gp2y0a/gp2y0a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gp2y0a/gp2y0a.c b/src/gp2y0a/gp2y0a.c index 318da1d9..0312b6bb 100644 --- a/src/gp2y0a/gp2y0a.c +++ b/src/gp2y0a/gp2y0a.c @@ -38,8 +38,8 @@ gp2y0a_context gp2y0a_init(uint8_t pin, float a_ref){ if (!dev) { - printf("%s: device context allocation failed (%d).\n", - __FUNCTION__, mraa_rv); + printf("%s: device context allocation failed.\n", + __FUNCTION__); return NULL; }