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
 void format_cmd_text(struct vcmd_entry *e, char *buf, unsigned int bufsz) {
381
 void format_cmd_text(struct vcmd_entry *e, char *buf, unsigned int bufsz) {
382
 	switch (e->cmd) {
382
 	switch (e->cmd) {
383
 	case CMD_INPUT_LABELS:
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
 	case CMD_OUTPUT_LABELS:
387
 	case CMD_OUTPUT_LABELS:
385
 		snprintf(buf, bufsz, "%s:\n%u %s\n\n", get_cmd_text(e->cmd),
388
 		snprintf(buf, bufsz, "%s:\n%u %s\n\n", get_cmd_text(e->cmd),
386
 			e->port_no1 - 1, e->param2);
389
 			e->port_no1 - 1, e->param2);

Loading…
Cancel
Save