Date: Wed, 22 Jul 2015 18:50:48 +0000 (UTC) From: "Conrad E. Meyer" <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285801 - head/sys/dev/vt Message-ID: <201507221850.t6MIomxP087880@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cem Date: Wed Jul 22 18:50:47 2015 New Revision: 285801 URL: https://svnweb.freebsd.org/changeset/base/285801 Log: vt_core.c: Use do/while to highlight missed semi-colon errors Also, fix some nearby #define whitespace while here. (Style cleanup for r285794.) Suggested by: jmg Differential Revision: https://reviews.freebsd.org/D3154 Approved by: markj (mentor) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Modified: head/sys/dev/vt/vt_core.c Modified: head/sys/dev/vt/vt_core.c ============================================================================== --- head/sys/dev/vt/vt_core.c Wed Jul 22 16:38:07 2015 (r285800) +++ head/sys/dev/vt/vt_core.c Wed Jul 22 18:50:47 2015 (r285801) @@ -110,8 +110,8 @@ const struct terminal_class vt_termclass #define VT_TIMERFREQ 25 /* Bell pitch/duration. */ -#define VT_BELLDURATION ((5 * hz + 99) / 100) -#define VT_BELLPITCH 800 +#define VT_BELLDURATION ((5 * hz + 99) / 100) +#define VT_BELLPITCH 800 #define VT_UNIT(vw) ((vw)->vw_device->vd_unit * VT_MAXWINDOWS + \ (vw)->vw_number) @@ -155,7 +155,7 @@ extern unsigned int vt_logo_height; extern unsigned int vt_logo_depth; extern unsigned char vt_logo_image[]; #ifndef DEV_SPLASH -#define vtterm_draw_cpu_logos(...) +#define vtterm_draw_cpu_logos(...) do {} while (0) const unsigned int vt_logo_sprite_height; #endif @@ -182,8 +182,8 @@ static void vt_resume_handler(void *priv SET_DECLARE(vt_drv_set, struct vt_driver); -#define _VTDEFH MAX(100, PIXEL_HEIGHT(VT_FB_DEFAULT_HEIGHT)) -#define _VTDEFW MAX(200, PIXEL_WIDTH(VT_FB_DEFAULT_WIDTH)) +#define _VTDEFH MAX(100, PIXEL_HEIGHT(VT_FB_DEFAULT_HEIGHT)) +#define _VTDEFW MAX(200, PIXEL_WIDTH(VT_FB_DEFAULT_WIDTH)) struct terminal vt_consterm; static struct vt_window vt_conswindow;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507221850.t6MIomxP087880>