From b8dbbe13fa4d0bbd4b51baa80e4572b35f11cbb2 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 22 Feb 2009 11:09:55 +0000 Subject: * ext/socket/option.c (inspect_linger): message refined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/socket/option.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 872fb1224..034b835f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Feb 22 20:09:29 2009 Tanaka Akira + + * ext/socket/option.c (inspect_linger): message refined. + Sun Feb 22 19:28:08 2009 Tanaka Akira * ext/socket/init.c (s_recvfrom): use rb_io_wait_readable after diff --git a/ext/socket/option.c b/ext/socket/option.c index a18806141..5563a7d8b 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -272,7 +272,7 @@ inspect_linger(int level, int optname, VALUE data, VALUE ret) if (RSTRING_LEN(data) == sizeof(struct linger)) { struct linger s; memcpy((char*)&s, RSTRING_PTR(data), sizeof(s)); - rb_str_catf(ret, " onoff:%d linger:%d", s.l_onoff, s.l_linger); + rb_str_catf(ret, " %s %dsec", s.l_onoff ? "on" : "off", s.l_linger); return 1; } else { -- cgit