[patch]wsconsctl - Floating point exception (divide by zero)

2021-06-30 Thread Karsten Pedersen
Hello, wsconsctl crashes on my z60m (i386) when outputting the brightness. I simply run wsconsctl and rather than: display.brightness=0, it crashes with a floating point exception error. I have attached a patch to fix it and also my dmesg so you can see my machine. Basically we are dividing by

Re: wsconsctl floating point exception

2016-04-29 Thread Jonathan Gray
On Fri, Apr 29, 2016 at 03:52:37PM +0200, Mark Kettenis wrote: > > Date: Fri, 29 Apr 2016 23:12:57 +1000 > > From: Jonathan Gray > > > > On Sat, Apr 23, 2016 at 10:20:15PM +0200, Joerg Jung wrote: > > > On Tue, Apr 19, 2016 at 10:57:38AM +0200, Caspar Schutijser wrote: > > > > Hi bugs@, > > > >

Re: wsconsctl floating point exception

2016-04-29 Thread Mark Kettenis
> Date: Fri, 29 Apr 2016 23:12:57 +1000 > From: Jonathan Gray > > On Sat, Apr 23, 2016 at 10:20:15PM +0200, Joerg Jung wrote: > > On Tue, Apr 19, 2016 at 10:57:38AM +0200, Caspar Schutijser wrote: > > > Hi bugs@, > > > > > > On my laptop, wsconsctl crashes with a floating point exception when it

Re: wsconsctl floating point exception

2016-04-29 Thread Joerg Jung
> On 29 Apr 2016, at 15:12, Jonathan Gray wrote: > > On Sat, Apr 23, 2016 at 10:20:15PM +0200, Joerg Jung wrote: >> On Tue, Apr 19, 2016 at 10:57:38AM +0200, Caspar Schutijser wrote: >>> Hi bugs@, >>> >>> On my laptop, wsconsctl crashes with a floating point exception when it >>> wants to print

Re: wsconsctl floating point exception

2016-04-29 Thread Jonathan Gray
On Sat, Apr 23, 2016 at 10:20:15PM +0200, Joerg Jung wrote: > On Tue, Apr 19, 2016 at 10:57:38AM +0200, Caspar Schutijser wrote: > > Hi bugs@, > > > > On my laptop, wsconsctl crashes with a floating point exception when it > > wants to print keyboard.backlight. It divides by 0. > > > > Below is a

Re: wsconsctl floating point exception

2016-04-23 Thread Joerg Jung
On Tue, Apr 19, 2016 at 10:57:38AM +0200, Caspar Schutijser wrote: > Hi bugs@, > > On my laptop, wsconsctl crashes with a floating point exception when it > wants to print keyboard.backlight. It divides by 0. > > Below is a patch that fixes the issue, output from gdb and my dmesg. Yes this is a

wsconsctl floating point exception

2016-04-19 Thread Caspar Schutijser
Hi bugs@, On my laptop, wsconsctl crashes with a floating point exception when it wants to print keyboard.backlight. It divides by 0. Below is a patch that fixes the issue, output from gdb and my dmesg. Best regards, Caspar Schutijser Index: util.c