From 53755ac91f5dc408c250f6313a924244fefe8950 Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Thu, 29 Nov 2018 14:50:37 +1100 Subject: Add debug log for lack of avirt map, clean up comments Signed-off-by: Mark Farrugia --- src/avirt-config.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit 1.2.3-korg