Fix NR_IRQS printk()
PATCH 1/1 Fix NR_IRQS printk()
- Missing some whitespace
- Tell that the third number is "initcnt" (whatever that is)
--- kernel/irq/irqdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/irq/irqdesc.c +1 -1
@@ -480,7 +480,7 @@ int __init early_irq_init(void)/* Let arch update nr_irqs and return the nr of preallocated irqs */ initcnt =arch_probe_nr_irqs (); -printk (KERN_INFO "NR_IRQS:%d nr_irqs:%d %d\n" ,NR_IRQS , nr_irqs, initcnt); +printk (KERN_INFO "NR_IRQS: %d, nr_irqs: %d, initcnt: %d\n" ,NR_IRQS , nr_irqs, initcnt);if (WARN_ON (nr_irqs >IRQ_BITMAP_BITS )) nr_irqs =IRQ_BITMAP_BITS ;
Signature · 1 line
2.1.4
Quoted 1 line · Vincent Legoll
Subject : [PATCH] Fix
NR_IRQSprintk()
The subject line is missing a subsystem token. Please consult
Documentation/process/submitting-patches.rst
and run 'git log path/to/affected.file' to see how a proper subject line should look like.
Quoted 2 lines
- Missing some whitespace
- Tell that the third number is "initcnt" (whatever that is)
Your changelog is telling WHAT the patch is doing, but not WHY and despite the subject claiming to fix something the changelog lacks any information about the problem it "fixes".
Aside of that: "(whatever that is)" is not really convincing that you know what you are doing.
Thanks,
tglx
Quoted 10 lines · Thomas Gleixner
Quoted 1 line · Vincent Legoll
Subject : [PATCH] Fix
NR_IRQSprintk()The subject line is missing a subsystem token. Please consult
Documentation/process/submitting-patches.rstand run 'git log path/to/affected.file' to see how a proper subject line should look like.
OK, looks like this is "genirq", is that right ?
Quoted 6 lines
Quoted 2 lines
- Missing some whitespace
- Tell that the third number is "initcnt" (whatever that is)Your changelog is telling WHAT the patch is doing, but not WHY and despite the subject claiming to fix something the changelog lacks any information about the problem it "fixes".
OK, will change, what about:
"[PATCH] genirq: Fix early_irq_init() printing the nr of preallocated irqs"
Quoted 2 lines
Aside of that: "(whatever that is)" is not really convincing that you know what you are doing.
Is the above better ? If OK, I'll resend properly.
Thanks for the help
Signature · 1 line
Vincent Legoll
PATCH 1/1 genirq: Tell that early_irq_init() is printing the nr of preallocated irqs
The early_irq_init() function was not telling what all the displayed information is.
- Add some missing whitespace & commas for easier reading
- Tell that the third number is the number of preallocated irqs returned by arch_probe_nr_irqs()
--- kernel/irq/irqdesc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/irq/irqdesc.c +2 -1
@@ -480,7 +480,8 @@ int __init early_irq_init(void)/* Let arch update nr_irqs and return the nr of preallocated irqs */ initcnt =arch_probe_nr_irqs (); -printk (KERN_INFO "NR_IRQS:%d nr_irqs:%d %d\n" ,NR_IRQS , nr_irqs, initcnt); +printk (KERN_INFO "NR_IRQS: %d, nr_irqs: %d, nr of preallocated irqs: %d\n" , +NR_IRQS , nr_irqs, initcnt);if (WARN_ON (nr_irqs >IRQ_BITMAP_BITS )) nr_irqs =IRQ_BITMAP_BITS ;
Signature · 1 line
2.7.4
PATCH 1/1 genirq: Tell that early_irq_init() is printing the nr of preallocated irqs
The early_irq_init() function was not telling what all the displayed information is.
- Add some missing whitespace & commas for easier reading
- Tell that the third number is the number of preallocated irqs returned by arch_probe_nr_irqs()
- Also cover !CONFIG_SPARSE_IRQ case
--- kernel/irq/irqdesc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/irq/irqdesc.c +3 -2
@@ -480,7 +480,8 @@ int __init early_irq_init(void)/* Let arch update nr_irqs and return the nr of preallocated irqs */ initcnt =arch_probe_nr_irqs (); -printk (KERN_INFO "NR_IRQS:%d nr_irqs:%d %d\n" ,NR_IRQS , nr_irqs, initcnt); +printk (KERN_INFO "NR_IRQS: %d, nr_irqs: %d, nr of preallocated irqs: %d\n" , +NR_IRQS , nr_irqs, initcnt);if (WARN_ON (nr_irqs >IRQ_BITMAP_BITS )) nr_irqs =IRQ_BITMAP_BITS ;
@@ -516,7 +517,7 @@ int __init early_irq_init(void)init_irq_default_affinity (); -printk (KERN_INFO "NR_IRQS:%d\n" ,NR_IRQS ); +printk (KERN_INFO "NR_IRQS: %d\n" ,NR_IRQS ); desc = irq_desc; count =ARRAY_SIZE (irq_desc);
Signature · 1 line
2.7.4
tip-bot for Vincent Legoll
merge bot[tip:irq/core] genirq: Make early_irq_init() print out more informative
genirq: Make early_irq_init() print out more informative
Commit-ID: 5a29ef22098874db79af7bf92a247a0f503bfa6e Gitweb: http://git.kernel.org/tip/5a29ef22098874db79af7bf92a247a0f503bfa6e Author: Vincent Legoll <[email protected]> AuthorDate: Tue, 9 May 2017 10:34:09 +0200 Committer: Thomas Gleixner <[email protected]> CommitDate: Fri, 26 May 2017 14:54:05 +0200
genirq: Make early_irq_init() print out more informative
The printk in early_irq_init() is cryptic and badly formatted:
NR_IRQS:33024 nr_irqs:968 16
The last number is the number of preallocated interrupts, so add a prefix to it:
NR_IRQS: 33024, nr_irqs: 968, preallocated irqs: 16
Cleanup the formatting for better readability as well.
--- kernel/irq/irqdesc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/irq/irqdesc.c +3 -2
@@ -480,7 +480,8 @@ int __init early_irq_init(void)/* Let arch update nr_irqs and return the nr of preallocated irqs */ initcnt =arch_probe_nr_irqs (); -printk (KERN_INFO "NR_IRQS:%d nr_irqs:%d %d\n" ,NR_IRQS , nr_irqs, initcnt); +printk (KERN_INFO "NR_IRQS: %d, nr_irqs: %d, preallocated irqs: %d\n" , +NR_IRQS , nr_irqs, initcnt);if (WARN_ON (nr_irqs >IRQ_BITMAP_BITS )) nr_irqs =IRQ_BITMAP_BITS ;
@@ -516,7 +517,7 @@ int __init early_irq_init(void)init_irq_default_affinity (); -printk (KERN_INFO "NR_IRQS:%d\n" ,NR_IRQS ); +printk (KERN_INFO "NR_IRQS: %d\n" ,NR_IRQS ); desc = irq_desc; count =ARRAY_SIZE (irq_desc);