Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b035221

Browse files
committed
ch12: update device node for miscdrv_rdwr_mutexlock
The device node name was hard coded in the kernel log message. Change the code to refer to the name in the device struct. Signed-off-by: Vincent Fu <[email protected]>
1 parent dccaab7 commit b035221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch12/1_miscdrv_rdwr_mutexlock/miscdrv_rdwr_mutexlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static int __init miscdrv_init_mutexlock(void)
278278
return ret;
279279
}
280280
pr_info("LLKD misc driver (major # 10) registered, minor# = %d,"
281-
" dev node is /dev/llkd_miscdrv_rdwr\n", llkd_miscdev.minor);
281+
" dev node is /dev/%s", llkd_miscdev.minor, llkd_miscdev.name);
282282

283283
/*
284284
* A 'managed' kzalloc(): use the 'devres' API devm_kzalloc() for mem

0 commit comments

Comments
 (0)