aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--drv_st2205.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drv_st2205.c b/drv_st2205.c
index beee45c..16064c8 100644
--- a/drv_st2205.c
+++ b/drv_st2205.c
@@ -75,8 +75,10 @@ static int drv_st2205_open(const char *section)
}
h = st2205_open(dev);
- if (h == NULL)
+ if (h == NULL) {
+ error("st2205: cannot open st2205 device %s", dev);
return -1;
+ }
return 0;
}