code:prdev - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki
- 输出 设备错误
- 共传入两个参数 str,dev
- str : 错误字串
- dev : 发出错误的设备
2426
2427 /*
2428 * prdev prints a warning message of the
2429 * form "mesg on dev x/y".
2430 * x and y are the major and minor parts of
2431 * the device argument.
2432 */
2433 prdev(str, dev)
2434 {
2435
2436 printf("%s on dev %l/%l \n", str, dev.d_major, dev.d_minor);
2437 }
2438 /* ------------------------- */