diff options
author | Kim Alvefur <zash@zash.se> | 2017-02-12 15:51:32 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-02-12 15:51:32 +0100 |
commit | 3e41ed80996bf1c72a725972e9884e25cfc0e5f5 (patch) | |
tree | 1b4ab0c2121df0af3e155153f651295d89729038 /util-src/ringbuffer.c | |
parent | a586901308157ae912d86292adf3ca6704217521 (diff) | |
download | prosody-3e41ed80996bf1c72a725972e9884e25cfc0e5f5.tar.gz prosody-3e41ed80996bf1c72a725972e9884e25cfc0e5f5.zip |
util.ringbuffer: Remove address of buffer itself from __tostring since is now in the same struct
Diffstat (limited to 'util-src/ringbuffer.c')
-rw-r--r-- | util-src/ringbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/ringbuffer.c b/util-src/ringbuffer.c index 73a8616b..640dc648 100644 --- a/util-src/ringbuffer.c +++ b/util-src/ringbuffer.c @@ -139,7 +139,7 @@ int rb_write(lua_State* L) { int rb_tostring(lua_State* L) { ringbuffer* b = luaL_checkudata(L, 1, "ringbuffer_mt"); - lua_pushfstring(L, "ringbuffer: %p->%p %d/%d", b, b->buffer, b->blen, b->alen); + lua_pushfstring(L, "ringbuffer: %p %d/%d", b, b->blen, b->alen); return 1; } |