X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=ginge.git;a=blobdiff_plain;f=loader%2Floader.c;h=7e71d4d9693f6093bf642a10aa5a147d3321443c;hp=28bdf8e8d496df87ed3a94628ff18b2b97fb858e;hb=3ef07128a8ad8a12688beee244c5e0a2629581de;hpb=7fd42181a7f66b4403076cd9de98e18140a7eaf8 diff --git a/loader/loader.c b/loader/loader.c index 28bdf8e..7e71d4d 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1,4 +1,9 @@ -// vim:shiftwidth=2:expandtab +/* + * GINGE - GINGE Is Not Gp2x Emulator + * (C) notaz, 2010-2011 + * + * This work is licensed under the MAME license, see COPYING file for details. + */ #include #include #include @@ -125,7 +130,7 @@ int main(int argc, char *argv[]) return 1; } - printf("load %d %08x-%08x from %08x\n", phdr[i].p_type, + log("load %d %08x-%08x from %08x\n", phdr[i].p_type, phdr[i].p_vaddr, end_addr, phdr[i].p_offset); align = phdr[i].p_vaddr & 0xfff; @@ -170,10 +175,11 @@ int main(int argc, char *argv[]) stack_frame[sfp++] = (long)environ[i]; stack_frame[sfp++] = 0; - printf("entering %08x, %d stack entries\n", hdr.e_entry, sfp); + log("entering %08x, %d stack entries\n", hdr.e_entry, sfp); do_entry(hdr.e_entry, stack_frame, sfp, NULL); fprintf(stderr, "do_entry failed!\n"); return 1; } +// vim:shiftwidth=2:expandtab