Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34298422 authored by Julian Wiedmann's avatar Julian Wiedmann Committed by Martin Schwidefsky
Browse files

s390/qdio: fix output of DSCI value in debug file



The DSCI is a 1-byte field, placed at the start of an u32. So when
printing it to a queue's debug state, limit the output to the part
that's actually occupied by the DSCI.
When the DSCI is set this gives us the expected output of '1', rather
than the current (obscure) value of '16777216'.

Suggested-by: default avatarJens Remus <jremus@linux.ibm.com>
Signed-off-by: default avatarJulian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: default avatarJens Remus <jremus@linux.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 093ddccb
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -128,8 +128,8 @@ static int qstat_show(struct seq_file *m, void *v)
		seq_printf(m, "polling: %d  ack start: %d  ack count: %d\n",
		seq_printf(m, "polling: %d  ack start: %d  ack count: %d\n",
			   q->u.in.polling, q->u.in.ack_start,
			   q->u.in.polling, q->u.in.ack_start,
			   q->u.in.ack_count);
			   q->u.in.ack_count);
		seq_printf(m, "DSCI: %d   IRQs disabled: %u\n",
		seq_printf(m, "DSCI: %x   IRQs disabled: %u\n",
			   *(u32 *)q->irq_ptr->dsci,
			   *(u8 *)q->irq_ptr->dsci,
			   test_bit(QDIO_QUEUE_IRQS_DISABLED,
			   test_bit(QDIO_QUEUE_IRQS_DISABLED,
			   &q->u.in.queue_irq_state));
			   &q->u.in.queue_irq_state));
	}
	}