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
commitdd36703d9614adbe3f3efe5dfa081d2f0d76d1f3 (patch)
tree486598cda8fc40cc0c4fab335a309d12a56eb5a2 /com32/samples
parent746b8fc13253278810a0bc33a252884e227cf053 (diff)
downloadsyslinux-dd36703d9614adbe3f3efe5dfa081d2f0d76d1f3.tar.gz
syslinux-dd36703d9614adbe3f3efe5dfa081d2f0d76d1f3.tar.xz
syslinux-dd36703d9614adbe3f3efe5dfa081d2f0d76d1f3.zip
Run Nindent on com32/samples/entrydump.c
Automatically reformat com32/samples/entrydump.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/entrydump.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/com32/samples/entrydump.c b/com32/samples/entrydump.c
index f0ddd5df..d50859f4 100644
--- a/com32/samples/entrydump.c
+++ b/com32/samples/entrydump.c
@@ -23,38 +23,38 @@
#include <syslinux/config.h>
struct stack_frame {
- uint16_t gs, fs, es, ds;
- uint32_t edi, esi, ebp, esp;
- uint32_t ebx, edx, ecx, eax;
- uint32_t eflags;
- uint16_t ret_ip, ret_cs;
- uint16_t pxe_ip, pxe_cs;
+ uint16_t gs, fs, es, ds;
+ uint32_t edi, esi, ebp, esp;
+ uint32_t ebx, edx, ecx, eax;
+ uint32_t eflags;
+ uint16_t ret_ip, ret_cs;
+ uint16_t pxe_ip, pxe_cs;
};
int main(void)
{
- const union syslinux_derivative_info *di;
- const struct stack_frame *sf;
+ const union syslinux_derivative_info *di;
+ const struct stack_frame *sf;
- openconsole(&dev_null_r, &dev_stdcon_w);
+ openconsole(&dev_null_r, &dev_stdcon_w);
- di = syslinux_derivative_info();
+ di = syslinux_derivative_info();
- if (di->c.filesystem != SYSLINUX_FS_PXELINUX) {
- printf("Not running under PXELINUX (fs = %02x)\n", di->c.filesystem);
- return 1;
- }
+ if (di->c.filesystem != SYSLINUX_FS_PXELINUX) {
+ printf("Not running under PXELINUX (fs = %02x)\n", di->c.filesystem);
+ return 1;
+ }
- sf = (const struct stack_frame *)di->pxe.stack;
+ sf = (const struct stack_frame *)di->pxe.stack;
- printf("EAX: %08x EBX: %08x ECX: %08x EDX: %08x\n"
- "ESP: %08x EBP: %08x ESI: %08x EDI: %08x\n"
- "SS: %04x DS: %04x ES: %04x FS: %04x GS: %04x\n"
- "EFLAGS: %08x RET: %04x:%04x PXE: %04x:%04x\n",
- sf->eax, sf->ebx, sf->ecx, sf->edx,
- sf->esp+4, sf->ebp, sf->esi, sf->edi,
- di->rr.r.fs, sf->ds, sf->es, sf->fs, sf->gs,
- sf->eflags, sf->ret_cs, sf->ret_ip, sf->pxe_cs, sf->pxe_ip);
+ printf("EAX: %08x EBX: %08x ECX: %08x EDX: %08x\n"
+ "ESP: %08x EBP: %08x ESI: %08x EDI: %08x\n"
+ "SS: %04x DS: %04x ES: %04x FS: %04x GS: %04x\n"
+ "EFLAGS: %08x RET: %04x:%04x PXE: %04x:%04x\n",
+ sf->eax, sf->ebx, sf->ecx, sf->edx,
+ sf->esp + 4, sf->ebp, sf->esi, sf->edi,
+ di->rr.r.fs, sf->ds, sf->es, sf->fs, sf->gs,
+ sf->eflags, sf->ret_cs, sf->ret_ip, sf->pxe_cs, sf->pxe_ip);
- return 0;
+ return 0;
}