[SerialICE] New patch to review for serialice: f0907b4 pc80: fix "number has no integer representation"

Lubomir Rintel (lkundrak@v3.sk) gerrit at coreboot.org
Wed May 27 22:34:29 CEST 2015


Lubomir Rintel (lkundrak at v3.sk) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10324

-gerrit

commit f0907b43d60e1dae72e4aa254d17a276803d6703
Author: Lubomir Rintel <lkundrak at v3.sk>
Date:   Mon May 25 07:17:25 2015 +0200

    pc80: fix "number has no integer representation"
    
    For the value of init == 80:
    
    lua: output.lua:6: bad argument #2 to 'format' (number has no integer representation)
    stack traceback:
    	[C]: in function 'string.format'
    	output.lua:6: in function 'printf'
    	output.lua:64: in function 'printk'
    	chipset/pc80.lua:213: in function 'i8254_post'
    	hooks.lua:122: in function 'walk_post_hooks'
    	replay.lua:24: in function 'replay_io'
    	replay.lua:74: in function 'parse_io'
    	replay.lua:250: in function 'parse_file'
    	replay.lua:269: in main chunk
    	[C]: in ?
    
    Change-Id: Iac92f0f378fec3b9dbb93fe4158cb4ffdd3a1f4a
    Signed-off-by: Lubomir Rintel <lkundrak at v3.sk>
---
 SerialICE/simba/chipset/pc80.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SerialICE/simba/chipset/pc80.lua b/SerialICE/simba/chipset/pc80.lua
index 454bdda..a1e3fdc 100644
--- a/SerialICE/simba/chipset/pc80.lua
+++ b/SerialICE/simba/chipset/pc80.lua
@@ -210,7 +210,7 @@ function i8254_post(f, action)
 			elseif reg == 2 then
 				if period ~= 0 then
 					local spktone = 1193000 / f.counter[reg].init
-					printk(f, action, "Speaker Tone (%s): %d kHz\n", modestr, spktone)
+					printk(f, action, "Speaker Tone (%s): %f kHz\n", modestr, spktone)
 				end
 			end
 		else



More information about the SerialICE mailing list