summaryrefslogtreecommitdiff
path: root/dahdi_cfg.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2008-09-16 16:42:12 +0000
committerShaun Ruffell <sruffell@digium.com>2008-09-16 16:42:12 +0000
commit7c750156dff9f78e7cca52a688c0b149ec4ed903 (patch)
treee57f5e568577f8341b7006adfc7bf3ebc6a5f5fc /dahdi_cfg.c
parent1d2e04ec63239f1b343129f796050d99bf7ad04e (diff)
Provide system error information if open on /dev/dahdi/channel fails.
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4913 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'dahdi_cfg.c')
-rw-r--r--dahdi_cfg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dahdi_cfg.c b/dahdi_cfg.c
index 8133454..9859f41 100644
--- a/dahdi_cfg.c
+++ b/dahdi_cfg.c
@@ -671,7 +671,9 @@ static void apply_fiftysix(void)
for (x = 1; x < DAHDI_MAX_CHANNELS; x++) {
chanfd = open("/dev/dahdi/channel", O_RDWR);
if (chanfd == -1) {
- fprintf(stderr, "Couldn't open /dev/dahdi/channel\n");
+ fprintf(stderr,
+ "Couldn't open /dev/dahdi/channel: %s\n",
+ strerror(errno));
exit(-1);
}