diff options
author | Holger Schurig <holgerschurig@gmail.com> | 2014-05-30 11:07:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-02 09:07:11 +0200 |
commit | 287c03267ebf5c5c4fea5b3d1e2bf53a838bfb19 (patch) | |
tree | 1c61d302bd589d287b67396ec4d3b42b31bd5e3f /drivers/video | |
parent | c19c0da71caaeb2dc6f53e7d53d9ebad24e46c09 (diff) | |
download | barebox-287c03267ebf5c5c4fea5b3d1e2bf53a838bfb19.tar.gz barebox-287c03267ebf5c5c4fea5b3d1e2bf53a838bfb19.tar.xz |
devinfo: make the output of "devinfo DEVICE" nicer
* some output sections started with "foo: bar", some with "foo = bar". Unify this.
* there was a fixed size to the "foo =" parameters, which wasn't fitting, this
was especially visible at "devinfo global"
* don't output "resources:", "driver:" and "bus:" lines if there are none
resources, drivers or busses involved.
* remove some empty lines
* harmonize differentiation between headlines (e.g. "resources:") and values
by indenting values slightly
* uppercase some texts
Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/video/fb.c b/drivers/video/fb.c index ecf6142c7a..e30ab59377 100644 --- a/drivers/video/fb.c +++ b/drivers/video/fb.c @@ -125,7 +125,7 @@ static struct file_operations fb_ops = { static void fb_print_mode(struct fb_videomode *mode) { - printf("%-20s %dx%d@%d\n", mode->name, + printf(" %s: %dx%d@%d\n", mode->name, mode->xres, mode->yres, mode->refresh); } @@ -141,12 +141,9 @@ static void fb_info(struct device_d *dev) { struct fb_info *info = dev->priv; - printf("available modes:\n"); - + printf("Available modes:\n"); fb_print_modes(&info->modes); fb_print_modes(&info->edid_modes); - - printf("\n"); } int register_framebuffer(struct fb_info *info) |