Re: [Xen-devel] [PATCH] console: allow log level threshold adjustments from serial console

2015-09-22 Thread Andrew Cooper
On 22/09/15 14:24, Jan Beulich wrote: On 22.09.15 at 15:17, wrote: On 22/09/15 13:45, Jan Beulich wrote: +static void do_adj_thresh(unsigned char key) +{ +if ( *upper_thresh_adj < *lower_thresh_adj ) +*upper_thresh_adj = *lower_thresh_adj; +printk("'%c' pressed -> %s log level:

Re: [Xen-devel] [PATCH] console: allow log level threshold adjustments from serial console

2015-09-22 Thread Jan Beulich
>>> On 22.09.15 at 15:17, wrote: > On 22/09/15 13:45, Jan Beulich wrote: >> +static void do_adj_thresh(unsigned char key) >> +{ >> +if ( *upper_thresh_adj < *lower_thresh_adj ) >> +*upper_thresh_adj = *lower_thresh_adj; >> +printk("'%c' pressed -> %s log level: %s (rate limited %s)

Re: [Xen-devel] [PATCH] console: allow log level threshold adjustments from serial console

2015-09-22 Thread Andrew Cooper
On 22/09/15 13:45, Jan Beulich wrote: ... so that one doesn't always need to reboot to see more / fewer messages. Note that upper thresholds are sticky, i.e. while they get adjusted upwards when the lower threshold would otherwise end up above the upper one, they don't get adjusted when reducing

[Xen-devel] [PATCH] console: allow log level threshold adjustments from serial console

2015-09-22 Thread Jan Beulich
... so that one doesn't always need to reboot to see more / fewer messages. Note that upper thresholds are sticky, i.e. while they get adjusted upwards when the lower threshold would otherwise end up above the upper one, they don't get adjusted when reducing the lower one. Signed-off-by: Jan Beul