Fix warning of printf() and time_t.
authorTatsuo Ishii <ishii at sraoss.co.jp>
Mon, 31 Jan 2011 14:47:06 +0000 (14:47 +0000)
committerTatsuo Ishii <ishii at sraoss.co.jp>
Mon, 31 Jan 2011 14:47:06 +0000 (14:47 +0000)
pool_process_reporting.c
pool_relcache.c

index b2214a9b9ab5121934593679c929c94728c7849a..39f204a721489fe5c43e65e222b57b770991964d 100644 (file)
@@ -437,7 +437,7 @@ void config_reporting(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *backend)
        i++;
 
        strncpy(status[i].name, "relcache_expire", POOLCONFIG_MAXNAMELEN);
-       snprintf(status[i].value, POOLCONFIG_MAXVALLEN, "%d", pool_config->relcache_expire);
+       snprintf(status[i].value, POOLCONFIG_MAXVALLEN, "%ld", pool_config->relcache_expire);
        strncpy(status[i].desc, "relation cache expiration time in seconds", POOLCONFIG_MAXDESCLEN);
        i++;
 
index 6bdea10354fa8bb51d82e4f9c678a85ecd39e4f2..471a771d6c91348d7e63f82d1b1882c6fa3ce634 100644 (file)
@@ -148,7 +148,7 @@ void *pool_search_relcache(POOL_RELCACHE *relcache, POOL_CONNECTION_POOL *backen
                        {
                                if (now > relcache->cache[i].expire)
                                {
-                                       pool_debug("pool_search_relcache: relcache for database:%s table:%s expired. now:%d expiration time:%d", dbname, rel, now, relcache->cache[i].expire);
+                                       pool_debug("pool_search_relcache: relcache for database:%s table:%s expired. now:%ld expiration time:%ld", dbname, rel, now, relcache->cache[i].expire);
                                        relcache->cache[i].refcnt = 0;
                                        break;
                                }