print subdevice too on command dumps.
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 13 Aug 2007 21:19:36 +0000 (21:19 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 13 Aug 2007 21:19:36 +0000 (21:19 +0000)
demo/common.c

index 0d2198bd7a40052e537dd55a3abf143022547c5d..f4c441cefbfa0f319919c6826487a6f8eef508e9 100644 (file)
@@ -119,6 +119,9 @@ void dump_cmd(FILE *out,comedi_cmd *cmd)
 {
        char buf[100];
 
+       fprintf(out,"subdevice:      %d\n",
+               cmd->subdev);
+
        fprintf(out,"start:      %-8s %d\n",
                cmd_src(cmd->start_src,buf),
                cmd->start_arg);