use existing logging system for DebugMessage

This commit is contained in:
copy 2014-12-21 22:05:23 +01:00
parent 42b0b098ca
commit e30395f50c
2 changed files with 3 additions and 4 deletions

View file

@ -55,10 +55,7 @@ function hex8(n)
/** @param {...string} log */
function DebugMessage(log)
{
if(DEBUG)
{
console.log.apply(console, arguments);
}
dbg_log([].slice.apply(arguments).join(" "), LOG_9P);
}
function LoadXMLResource(url, OnSuccess, OnError) {

View file

@ -29,6 +29,7 @@ var
/** @const */ LOG_APIC = 0x080000,
/** @const */ LOG_NET = 0x100000,
/** @const */ LOG_VIRTIO = 0x200000,
/** @const */ LOG_9P = 0x400000,
@ -62,6 +63,7 @@ var LOG_NAMES = [
[LOG_APIC, "APIC"],
[LOG_NET, "NET"],
[LOG_VIRTIO, "VIO"],
[LOG_9P, "9P"],
];
var