From: Moritz S. <Mor...@in...> - 2012-07-17 14:38:38
Attachments:
smime.p7s
0001-Add-voidIO-to-IOUnits.patch
|
Hi, this tiny patch adds voidIO to the available IO-Units. While one normally does not want to access that directly, one might want to set the LogStream. The Cooja-Patch, that adds the mote-information to the " *** IOUnit write to non-existent IO at ..." warning is already working and will be submitted as soon as patches are accepted, again. Cheers Morty -- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : st...@in... WWW : http://www4.informatik.uni-erlangen.de/~morty |
From: Moritz S. <Mor...@in...> - 2012-07-17 14:49:52
|
Here's the follow up patch, that avoids writing to System.err if a LogStream is registered for an IOUnit. Cheers Morty On 2012-07-17 16:38, Moritz Struebe wrote: > Hi, > > this tiny patch adds voidIO to the available IO-Units. While one > normally does not want to access that directly, one might want to set > the LogStream. > The Cooja-Patch, that adds the mote-information to the " *** IOUnit > write to non-existent IO at ..." warning is already working and will be > submitted as soon as patches are accepted, again. > > Cheers > Morty -- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : st...@in... WWW : http://www4.informatik.uni-erlangen.de/~morty |
From: Moritz S. <Mor...@in...> - 2012-07-17 15:06:22
Attachments:
smime.p7s
|
Ok, forget this one - a bigger patch is needed to fix this.... Cheers Morty On 2012-07-17 16:49, Moritz Struebe wrote: > Here's the follow up patch, that avoids writing to System.err if a > LogStream is registered for an IOUnit. > > Cheers > Morty -- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : st...@in... WWW : http://www4.informatik.uni-erlangen.de/~morty |
From: Moritz S. <Mor...@in...> - 2012-07-17 16:58:10
Attachments:
smime.p7s
|
Ok, so here is the fixed version. It allows to add a WarnStream. This stream will get the warnings, that were previously printed to System.err. As a side note: Is there a good reason for the "DEBUG" variable? I'd expect the JIT to optimitze that call. At least I don't expect that it has enough impact to justify duplicating the logic whether to debug or not. Cheers Morty On 2012-07-17 16:49, Moritz Struebe wrote: > Here's the follow up patch, that avoids writing to System.err if a > LogStream is registered for an IOUnit. > > Cheers > Morty -- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : st...@in... WWW : http://www4.informatik.uni-erlangen.de/~morty |
From: Moritz S. <Mor...@in...> - 2012-07-17 16:59:06
Attachments:
smime.p7s
0001-Add-WarnStream-to-Loggable.patch
|
Damn, I should go home! Here's the patch! Cheers Morty On 2012-07-17 18:58, Moritz Struebe wrote: > Ok, > > so here is the fixed version. It allows to add a WarnStream. This stream > will get the warnings, that were previously printed to System.err. > > As a side note: Is there a good reason for the "DEBUG" variable? I'd > expect the JIT to optimitze that call. At least I don't expect that it > has enough impact to justify duplicating the logic whether to debug or not. > > Cheers > Morty -- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : st...@in... WWW : http://www4.informatik.uni-erlangen.de/~morty |
From: Moritz S. <Mor...@in...> - 2012-08-07 17:08:48
Attachments:
smime.p7s
|
Patches are now well tested and pushed to my git: http://i4git.cs.fau.de/mspsim.git/tree/patches Cheers Morty On 2012-07-17 18:58, Moritz Struebe wrote: > Damn, I should go home! Here's the patch! > > Cheers > Morty > > On 2012-07-17 18:58, Moritz Struebe wrote: >> > Ok, >> > >> > so here is the fixed version. It allows to add a WarnStream. This stream >> > will get the warnings, that were previously printed to System.err. >> > >> > As a side note: Is there a good reason for the "DEBUG" variable? I'd >> > expect the JIT to optimitze that call. At least I don't expect that it >> > has enough impact to justify duplicating the logic whether to debug or not. >> > >> > Cheers >> > Morty -- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : st...@in... WWW : http://www4.informatik.uni-erlangen.de/~morty |