Commit 3682e697 authored by Vikram Narayanan's avatar Vikram Narayanan

lcd/kliblcd: Add debug print if load_module fails

Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent bb84ff25
......@@ -54,6 +54,9 @@ int __kliblcd_module_host_load(char *mdir, char *module_name,
ret = request_lcd_module(mpath);
if (ret < 0) {
LIBLCD_ERR("load module failed for %s (ret = %d)", mpath, ret);
/* To facilitate debugging */
if (ret == -ENOENT)
LIBLCD_ERR("Maybe /sbin/lcd-insmod is missing?");
goto fail1;
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment