aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lua
diff options
context:
space:
mode:
authorFerenc Wágner <wferi@niif.hu>2014-07-03 22:59:45 +0200
committerFerenc Wágner <wferi@niif.hu>2014-10-11 21:59:16 +0200
commit43dd02b9d267cba29b997bacf3cf2e6067007c84 (patch)
tree3c6fabd8f5c9e43ad236278528aa8faac9d2ce17 /com32/lua
parente5cf2f3e91bb393d5c1e2ddc1f691283c4d6f975 (diff)
downloadsyslinux-43dd02b9d267cba29b997bacf3cf2e6067007c84.tar.gz
syslinux-43dd02b9d267cba29b997bacf3cf2e6067007c84.tar.xz
syslinux-43dd02b9d267cba29b997bacf3cf2e6067007c84.zip
lua: docs: remove printf from loadfile example
Signed-off-by: Ferenc Wágner <wferi@niif.hu>
Diffstat (limited to 'com32/lua')
-rw-r--r--com32/lua/doc/syslinux.asc13
1 files changed, 3 insertions, 10 deletions
diff --git a/com32/lua/doc/syslinux.asc b/com32/lua/doc/syslinux.asc
index e5807a21..dac8cee3 100644
--- a/com32/lua/doc/syslinux.asc
+++ b/com32/lua/doc/syslinux.asc
@@ -113,21 +113,14 @@ _Example_:
......................................................
local sl = require "syslinux"
--- get nice output
-printf = function(s,...)
- return io.write(s:format(...))
- end -- function
-
kernel = sl.loadfile("/SuSE-11.1/x86_64/linux")
-
-printf("Filename/size: %s %d\n", sl.filename(kernel), sl.filesize(kernel))
+print ("File name: " .. sl.filename (kernel) .. " size: " .. sl.filesize (kernel))
initrd = sl.loadfile("/SuSE-11.1/x86_64/initrd")
-
-printf("Filename/size: %s %d\n", sl.filename(initrd), sl.filesize(initrd))
+print ("File name: " .. sl.filename (initrd) .. " size: " .. sl.filesize (initrd))
initrd = sl.initramfs_init()
-sl.initramfs_load_archive(initrd, "/SuSE-11.1/x86_64/initrd");
+sl.initramfs_load_archive(initrd, "/SuSE-11.1/x86_64/initrd")
sl.boot_it(kernel, initrd, "init=/bin/bash")
......................................................