hongbochen / fb

该库首先是学习framebuffer的一些例程,后面就是使用framebuffer实现linux的屏幕截屏,然后再使用framebuffer实现一款android app的屏幕截屏,最后,尝试使用frame buffer来实现屏幕录制.
Apache License 2.0
28 stars 19 forks source link

fb_fix.smem_start is UNSIGNED LONG type #1

Open WANG-lp opened 8 years ago

WANG-lp commented 8 years ago

the smem_start in fb_fix_screeninfo is unsigned long type, you should use %lu instead %d in printf for unsigned long. Don't you notice the value of smem_start in your output is a negative number? :)

WANG-lp commented 8 years ago

Please refer http://lxr.free-electrons.com/source/include/linux/fb.h?v=2.4.37#L113

hongbochen commented 8 years ago

Thank you very much.It's my pleasure for pointing out my mistake.I will modify it as soon as possible.If I get it wrong in the future,I am extremely supposed to notify me.Thanks again.