Fix off-by-one bug in log functions
Fix off-by-one bug in log functions

1ace/sway,ascent12/sway,4e554c4c/sway,sleep-walker/sway,johalun/sway,1ace/sway,mikkeloscar/sway,SirCmpwn/sway,mikkeloscar/sway,1ace/sway,sleep-walker/sway,ascent12/sway,taiyu-len/sway,ptMuta/sway,ascent12/sway,4e554c4c/sway,taiyu-len/sway,taiyu-len/sway