Skip to content

Commit

Permalink
Minor mxcfb debug logging tweak (#729)
Browse files Browse the repository at this point in the history
Recap the actual details of the ioctl, to complement the debug logging from UIManager
  • Loading branch information
NiLuJe authored Sep 8, 2018
1 parent d96c691 commit 1772343
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ffi/framebuffer_mxcfb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ local function mxc_update(fb, update_ioctl, refarea, refresh_type, waveform_mode
refarea[0].update_mode = C.UPDATE_MODE_FULL
end

-- Recap the actual details of the ioctl, vs. what UIManager asked for...
fb.debug(string.format("mxc_update: %ux%u region @ (%u, %u) with marker %u (WFM: %u & UPD: %u)", w, h, x, y, marker, refarea[0].waveform_mode, refarea[0].update_mode))

local rv = C.ioctl(fb.fd, update_ioctl, refarea)
if rv < 0 then
local err = ffi.errno()
Expand Down

0 comments on commit 1772343

Please sign in to comment.