aboutsummaryrefslogtreecommitdiffstats
path: root/com32/samples
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:31 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:31 -0700
commit480f19887bdaf9bdadb53b73b05df5ee09d3bcd1 (patch)
treeff5087aa9248bc866782f4592177c9b69fa45805 /com32/samples
parent184f3a7f19c982d6cca293b2283c99891fce9d3c (diff)
downloadsyslinux-480f19887bdaf9bdadb53b73b05df5ee09d3bcd1.tar.gz
syslinux-480f19887bdaf9bdadb53b73b05df5ee09d3bcd1.tar.xz
syslinux-480f19887bdaf9bdadb53b73b05df5ee09d3bcd1.zip
Run Nindent on com32/samples/serialinfo.c
Automatically reformat com32/samples/serialinfo.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/samples')
-rw-r--r--com32/samples/serialinfo.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/com32/samples/serialinfo.c b/com32/samples/serialinfo.c
index 953a7054..10d02521 100644
--- a/com32/samples/serialinfo.c
+++ b/com32/samples/serialinfo.c
@@ -23,18 +23,17 @@
int main(void)
{
- const struct syslinux_serial_console_info *si;
+ const struct syslinux_serial_console_info *si;
- openconsole(&dev_null_r, &dev_stdcon_w);
+ openconsole(&dev_null_r, &dev_stdcon_w);
- si = syslinux_serial_console_info();
+ si = syslinux_serial_console_info();
- printf("Serial port base: %#06x\n", si->iobase);
- printf("Serial port divisor: %5d", si->divisor);
- if (si->divisor)
- printf(" (%d baud)", 115200/si->divisor);
- printf("\n"
- "Flow control bits: %#05x\n", si->flowctl);
+ printf("Serial port base: %#06x\n", si->iobase);
+ printf("Serial port divisor: %5d", si->divisor);
+ if (si->divisor)
+ printf(" (%d baud)", 115200 / si->divisor);
+ printf("\n" "Flow control bits: %#05x\n", si->flowctl);
- return 0;
+ return 0;
}