diff --git a/ext/mysql2/client.c b/ext/mysql2/client.c index c88dcaf..393e3e3 100644 --- a/ext/mysql2/client.c +++ b/ext/mysql2/client.c @@ -315,7 +315,7 @@ static VALUE rb_mysql_client_query(int argc, VALUE * argv, VALUE self) { if (sec >= 0) { tvp->tv_sec = sec; } else { - rb_raise(cMysql2Error, "read_timeout must be a positive integer, you passed %d", sec); + rb_raise(cMysql2Error, "read_timeout must be a positive integer, you passed %ld", sec); } tvp->tv_usec = 0; }