[Freemint-list] [PATCH] Put bootlog file into sysdir/machdir
Miro Kropáček
miro.kropacek at gmail.com
Wed Jan 4 02:35:31 MSK 2017
So, if there no objections, I'd assume it's free to commit, so please Alan,
do commit it. :)
Don't hardcode bootlog file as "C:/mint/boot.log", use "<sysdir>/boot.log"
(or "<mchdir>/boot.log" if present) instead.
Contributed by Miro Kropáček
On 30 December 2016 at 01:59, Miro Kropáček <miro.kropacek at gmail.com> wrote:
> Hi,
>
> holidays have brought me to an idea to reorganise some stuff on my
> Falcon's disk, i.e. have separate partitions for every system -- TOS,
> MagiC, FreeMiNT, Geneva, ... and boot into each of them with a single
> keystroke (courtesy of HD Driver and lately also EmuTOS), just for fun.
>
> However, you can imagine my surprise when I realised that XaAES (from
> EasyMiNT 1.90) crashes if I don't boot it from C:. Later I realised that it
> had been fixed in trunk and later after that I realised it had been
> modified to <sysdrv>/mint/boot.log path in Helmut's branch.
>
> I don't like either of the solutions, it smells hacky to me. So here's a
> patch for putting boot.log where it belongs -- into $SYSDIR and, if
> present, into mchdir so you can have different logs for each machine, if
> you happen to share the same image / folder across more hardware.
>
> I also took the liberty to fix some awful design decisions regarding the
> bootlog handling (like passing memory pointer between processes). To be
> honest, I can't quite understand why we need a Ssystem() call just to
> determine the path of bootlog file (esp. if there's /kern/bootlog) but
> whatever, I fixed it.
>
> Comments welcome.
>
>
> --
> MiKRO / Mystic Bytes
> http://mikro.atari.org
>
--
MiKRO / Mystic Bytes
http://mikro.atari.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.atariforge.org/pipermail/freemint-list/attachments/20170104/9b01cbe4/attachment.html
More information about the Freemint-list
mailing list