summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-13 22:12:37 -0800
committerH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-13 22:12:37 -0800
commitbe99ebd656a6805fbe4d5de8136b5e5a19cf0b3c (patch)
treea5159e4ebb3b2e5a25f7420e8d2af2e8803bb463
parent4229317a5f27aaf2e7a6e75ee2fae54bb23f0fae (diff)
downloadnasm-be99ebd656a6805fbe4d5de8136b5e5a19cf0b3c.tar.gz
assemble.c: capitalize LOCK prefix
LOCK is a keyword and not a descriptive term here, capitalize it. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r--asm/assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/assemble.c b/asm/assemble.c
index 03335eb3..01f4d1bc 100644
--- a/asm/assemble.c
+++ b/asm/assemble.c
@@ -1418,7 +1418,7 @@ static int64_t calcsize(int32_t segment, int64_t offset, int bits,
if (has_prefix(ins, PPS_LOCK, P_LOCK) && lockcheck &&
(!itemp_has(temp,IF_LOCK) || !is_class(MEMORY, ins->oprs[0].type))) {
/*!
- *!lock [on] lock prefix on unlockable instructions
+ *!lock [on] LOCK prefix on unlockable instructions
*! warns about \c{LOCK} prefixes on unlockable instructions.
*/
nasm_warnf(WARN_LOCK | ERR_PASS2 , "instruction is not lockable");