* [PATCH] s390/diag: fix display of diagnose call statistics
@ 2020-03-05 9:03 Michael Mueller
0 siblings, 0 replies; only message in thread
From: Michael Mueller @ 2020-03-05 9:03 UTC (permalink / raw)
To: linux-s390
Cc: linux-kernel, borntraeger, heiko.carstens, gor, Michael Mueller
Show the full diag statistic table and not just parts of it.
Signed-off-by: Michael Mueller <mimu@linux.ibm.com>
---
arch/s390/kernel/diag.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/s390/kernel/diag.c b/arch/s390/kernel/diag.c
index e9dac9a24d3f..61f2b0412345 100644
--- a/arch/s390/kernel/diag.c
+++ b/arch/s390/kernel/diag.c
@@ -84,7 +84,7 @@ static int show_diag_stat(struct seq_file *m, void *v)
static void *show_diag_stat_start(struct seq_file *m, loff_t *pos)
{
- return *pos <= nr_cpu_ids ? (void *)((unsigned long) *pos + 1) : NULL;
+ return *pos <= NR_DIAG_STAT ? (void *)((unsigned long) *pos + 1) : NULL;
}
static void *show_diag_stat_next(struct seq_file *m, void *v, loff_t *pos)
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-05 9:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-05 9:03 [PATCH] s390/diag: fix display of diagnose call statistics Michael Mueller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®