diff options
Diffstat (limited to 'pcilib/py.c')
-rw-r--r-- | pcilib/py.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcilib/py.c b/pcilib/py.c index 5ec122f..4256afc 100644 --- a/pcilib/py.c +++ b/pcilib/py.c @@ -142,7 +142,7 @@ static char *pcilib_py_parse_string(pcilib_t *ctx, const char *codestr, pcilib_v } else { err = pcilib_read_register(ctx, NULL, reg, ®val); if (err) break; - sprintf(dst + offset, "0x%x", regval); + sprintf(dst + offset, "0x%lx", regval); } } |