use existing logging system for DebugMessage
This commit is contained in:
parent
42b0b098ca
commit
e30395f50c
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue