forked from M-Labs/artiq
1
0
Fork 0

artiq_personality: cast exception params so that %lld is always valid.

This commit is contained in:
whitequark 2015-08-06 08:25:13 +03:00
parent 722dfef97b
commit 98cd4288c1
1 changed files with 3 additions and 1 deletions

View File

@ -242,7 +242,9 @@ static struct artiq_raised_exception inflight;
void __artiq_raise(struct artiq_exception *artiq_exn) { void __artiq_raise(struct artiq_exception *artiq_exn) {
EH_LOG("===> raise (name=%s, msg=%s, params=[%lld,%lld,%lld])", EH_LOG("===> raise (name=%s, msg=%s, params=[%lld,%lld,%lld])",
artiq_exn->name, artiq_exn->message, artiq_exn->name, artiq_exn->message,
artiq_exn->param[0], artiq_exn->param[1], artiq_exn->param[2]); (long long int)artiq_exn->param[0],
(long long int)artiq_exn->param[1],
(long long int)artiq_exn->param[2]);
memmove(&inflight.artiq, artiq_exn, sizeof(struct artiq_exception)); memmove(&inflight.artiq, artiq_exn, sizeof(struct artiq_exception));
inflight.unwind.exception_class = ARTIQ_EXCEPTION_CLASS; inflight.unwind.exception_class = ARTIQ_EXCEPTION_CLASS;