summaryrefslogtreecommitdiff
path: root/src/stage4/log.js
diff options
context:
space:
mode:
authorspv420 <spv@spv.sh>2022-07-31 03:00:16 -0400
committerspv420 <spv@spv.sh>2022-07-31 03:00:16 -0400
commitb4c8eae5358953b4b55f6a7df2e8c9836b8d3c13 (patch)
treeba1fbe4350d08392a71e79833fefd27c758fc0e5 /src/stage4/log.js
parentb1e4ed080148f95bc3037ee2e059e944f3b06ff5 (diff)
cock
Diffstat (limited to 'src/stage4/log.js')
-rw-r--r--src/stage4/log.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/stage4/log.js b/src/stage4/log.js
new file mode 100644
index 0000000..cb6357f
--- /dev/null
+++ b/src/stage4/log.js
@@ -0,0 +1,15 @@
+function p0laris_log() {
+ var args = [];
+ for (var i = 0; i < arguments.length; i++) {
+ args.push(arguments[i]);
+ }
+
+ if (args.length > 1) {
+ printf.apply(this, [args[0] + "\n"].concat(args.slice(1)));
+ } else {
+ printf.apply(this, [args[0] + "\n"]);
+ }
+ syslog.apply(this, [LOG_SYSLOG].concat(args));
+
+ return;
+} \ No newline at end of file