diff options
Diffstat (limited to 'mixlib/mix_predicate.c')
-rw-r--r-- | mixlib/mix_predicate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mixlib/mix_predicate.c b/mixlib/mix_predicate.c index 544da64..38049dc 100644 --- a/mixlib/mix_predicate.c +++ b/mixlib/mix_predicate.c @@ -165,12 +165,12 @@ mix_predicate_get_message (const mix_predicate_t *predicate) switch (predicate->type) { case MIX_PRED_REG_A: - snprintf (BUFFER, SIZE, "Register A changed to %s%d", + snprintf (BUFFER, SIZE, "Register A changed to %s%ld", mix_word_is_negative (predicate->data.regA)? "-" : "+", mix_word_magnitude (predicate->data.regA)); break; case MIX_PRED_REG_X: - snprintf (BUFFER, SIZE, "Register X changed to %s%d", + snprintf (BUFFER, SIZE, "Register X changed to %s%ld", mix_word_is_negative (predicate->data.regX)? "-" : "+", mix_word_magnitude (predicate->data.regX)); break; @@ -194,7 +194,7 @@ mix_predicate_get_message (const mix_predicate_t *predicate) predicate->data.over ? "ON" : "OFF"); break; case MIX_PRED_MEM: - snprintf (BUFFER, SIZE, "Memory address %d changed to %s%d", + snprintf (BUFFER, SIZE, "Memory address %d changed to %s%ld", predicate->control, mix_word_is_negative (predicate->data.mem)? "-" : "+", mix_word_magnitude (predicate->data.mem)); |