aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-11-29 14:50:37 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-11-29 14:50:37 +1100
commit53755ac91f5dc408c250f6313a924244fefe8950 (patch)
tree24c30c42dbd62e6a10678e8d427e70715077a711
parent4031878692836dde32a4883389f65f928e4204fa (diff)
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
-rw-r--r--src/avirt-config.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/avirt-config.c b/src/avirt-config.c
index d6e78f0..9bfb4cd 100644
--- a/src/avirt-config.c
+++ b/src/avirt-config.c
@@ -89,7 +89,7 @@ static int mount_configfs()
FILE *procfs;
struct stat st = {0};
- // Check for /proc/filesystem for configfs support
+ // Check for /proc/filesystems for configfs support
procfs = fopen("/proc/filesystems", "r");
if (!procfs)
return -1;
@@ -222,6 +222,10 @@ int snd_avirt_stream_new(const char *name, unsigned int channels, int direction,
strcat(path_attr, "/map");
WRITE_TO_PATH(path_attr, "%s", map);
}
+ else
+ {
+ AVIRT_DEBUG("No map specified!");
+ }
AVIRT_DEBUG_V("Created stream: %s", name);