Browse Source

cmd: Format CMD_INPUT_LABELS command separate from others.

Georgi Chorbadzhiyski 9 years ago
parent
commit
81e1974c4d
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      cmd.c

+ 3
- 0
cmd.c View File

@@ -381,6 +381,9 @@ void prepare_cmd_entry(struct videohub_data *d, struct vcmd_entry *e) {
381 381
 void format_cmd_text(struct vcmd_entry *e, char *buf, unsigned int bufsz) {
382 382
 	switch (e->cmd) {
383 383
 	case CMD_INPUT_LABELS:
384
+		snprintf(buf, bufsz, "%s:\n%u %s\n\n", get_cmd_text(e->cmd),
385
+			e->port_no1 - 1, e->param2);
386
+		break;
384 387
 	case CMD_OUTPUT_LABELS:
385 388
 		snprintf(buf, bufsz, "%s:\n%u %s\n\n", get_cmd_text(e->cmd),
386 389
 			e->port_no1 - 1, e->param2);

Loading…
Cancel
Save