summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-03-05 07:04:48 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-03-05 07:04:48 (GMT)
commit60718b3212e98f0b15c7ddf536476305c178708a (patch)
tree112c030186f18ae0ed757304784fc2e9af1c9fe2
parent796e816fb8eec0ddde4e1002ac0d913c57751918 (diff)
downloadvirtio9p-60718b3212e98f0b15c7ddf536476305c178708a.zip
virtio9p-60718b3212e98f0b15c7ddf536476305c178708a.tar.gz
virtio9p-60718b3212e98f0b15c7ddf536476305c178708a.tar.bz2
virtio9p-60718b3212e98f0b15c7ddf536476305c178708a.tar.xz
v9fs.h: use .asciz instead of .ascii + .byte 0
Use .asciz instead of the longer .ascii with a separate .byte directive.
-rw-r--r--v9fs.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/v9fs.h b/v9fs.h
index d7f989c..48b1bd5 100644
--- a/v9fs.h
+++ b/v9fs.h
@@ -340,8 +340,7 @@
*/
.macro printmsg msg
.pushsection ".rodata.str","a",@progbits
-101: .ascii "\msg"
- .byte 0
+101: .asciz "\msg"
.popsection
pushw $101b
call puts
@@ -349,8 +348,7 @@
.macro printerr msg
.pushsection ".rodata.str","a",@progbits
-101: .ascii "\msg"
- .byte 0
+101: .asciz "\msg"
.popsection
pushw $101b
call puterr