Mercurial > hg > dmlib
changeset 1721:c9a6f1dae756
Add one default case error handler.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 06 Jun 2018 15:20:31 +0300 |
parents | 77a4d8fab5cc |
children | de8e0a404c06 |
files | tools/lib64gfx.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64gfx.c Wed Jun 06 15:19:40 2018 +0300 +++ b/tools/lib64gfx.c Wed Jun 06 15:20:31 2018 +0300 @@ -860,6 +860,11 @@ case DO_SET_OP: memset(blk->data, op->offs, size); break; + default: + return dmError(DMERR_INTERNAL, + "Unhandled op type %d in " + "op #%d, offs=%d ($%04x), bank=%d, size=%d ($%04x) @ %d ($%04x)\n", + op->type, i, op->offs, op->offs, op->bank, size, size, buf->len, buf->len); } break;