outputBuffer.append(" [", 2);
- outputBuffer.Printf("%"PRIu64"<=%"PRIu64, theGetSize, thePutSize);
+ outputBuffer.Printf("%" PRIu64 "<=%" PRIu64, theGetSize, thePutSize);
if (theBodySize >= 0)
- outputBuffer.Printf("<=%"PRId64, theBodySize);
+ outputBuffer.Printf("<=%" PRId64, theBodySize);
else
outputBuffer.append("<=?", 3);
}
storeAppendPrintf(sentry, "\t%s:\n", label);
- storeAppendPrintf(sentry, "\t\tMax: %"PRId64"\n", max_bytes);
+ storeAppendPrintf(sentry, "\t\tMax: %" PRId64 "\n", max_bytes);
storeAppendPrintf(sentry, "\t\tRestore: %d\n", restore_bps);
}
void
DelaySpec::dump (StoreEntry *entry) const
{
- storeAppendPrintf(entry, " %d/%"PRId64"", restore_bps, max_bytes);
+ storeAppendPrintf(entry, " %d/%" PRId64, restore_bps, max_bytes);
}
void
if (r->offset > -1 && r->offset != fs->offset) {
DEBUG(2)
- fprintf(stderr, "seeking to %"PRId64"\n", (int64_t)r->offset);
+ fprintf(stderr, "seeking to %" PRId64 "\n", (int64_t)r->offset);
if (lseek(fs->fd, r->offset, SEEK_SET) < 0) {
DEBUG(1) {
- fprintf(stderr, "%d FD %d, offset %"PRId64": ", (int) mypid, fs->fd, (int64_t)r->offset);
+ fprintf(stderr, "%d FD %d, offset %" PRId64 ": ", (int) mypid, fs->fd, (int64_t)r->offset);
perror("lseek");
}
}
x = read(fs->fd, buf, readlen);
DEBUG(2)
- fprintf(stderr, "%d READ %d,%d,%"PRId64" ret %d\n", (int) mypid,
+ fprintf(stderr, "%d READ %d,%d,%" PRId64 " ret %d\n", (int) mypid,
fs->fd, readlen, (int64_t)r->offset, x);
if (x < 0) {
if (r->offset > -1 && r->offset != fs->offset) {
if (lseek(fs->fd, r->offset, SEEK_SET) < 0) {
DEBUG(1) {
- fprintf(stderr, "%d FD %d, offset %"PRId64": ", (int) mypid, fs->fd, (int64_t)r->offset);
+ fprintf(stderr, "%d FD %d, offset %" PRId64 ": ", (int) mypid, fs->fd, (int64_t)r->offset);
perror("lseek");
}
}
}
DEBUG(2)
- fprintf(stderr, "%d WRITE %d,%d,%"PRId64"\n", (int) mypid,
+ fprintf(stderr, "%d WRITE %d,%d,%" PRId64 "\n", (int) mypid,
fs->fd, wrtlen, (int64_t)r->offset);
x = write(fs->fd, buf, wrtlen);
if (!known_spec(spec->offset) || !known_spec(spec->length))
packerPrintf(p, "*");
else
- packerPrintf(p, "bytes %"PRId64"-%"PRId64,
+ packerPrintf(p, "bytes %" PRId64 "-%" PRId64,
spec->offset, spec->offset + spec->length - 1);
}
if (!known_spec(range->elength))
packerPrintf(p, "/*");
else
- packerPrintf(p, "/%"PRId64, range->elength);
+ packerPrintf(p, "/%" PRId64, range->elength);
}
void
HttpHdrRangeSpec::packInto(Packer * packer) const
{
if (!known_spec(offset)) /* suffix */
- packerPrintf(packer, "-%"PRId64, length);
+ packerPrintf(packer, "-%" PRId64, length);
else if (!known_spec(length)) /* trailer */
- packerPrintf(packer, "%"PRId64"-", offset);
+ packerPrintf(packer, "%" PRId64 "-", offset);
else /* range */
- packerPrintf(packer, "%"PRId64"-%"PRId64,
+ packerPrintf(packer, "%" PRId64 "-%" PRId64,
offset, offset + length - 1);
}
RequestMethodStr(method), log_url);
if (vary_headers)
mb->Printf("\tvary_headers: %s\n", vary_headers);
- mb->Printf("\tinmem_lo: %"PRId64"\n", inmem_lo);
- mb->Printf("\tinmem_hi: %"PRId64"\n", data_hdr.endOffset());
- mb->Printf("\tswapout: %"PRId64" bytes queued\n",
+ mb->Printf("\tinmem_lo: %" PRId64 "\n", inmem_lo);
+ mb->Printf("\tinmem_hi: %" PRId64 "\n", data_hdr.endOffset());
+ mb->Printf("\tswapout: %" PRId64 " bytes queued\n",
swapout.queue_offset);
if (swapout.sio.getRaw())
- mb->Printf("\tswapout: %"PRId64" bytes written\n",
+ mb->Printf("\tswapout: %" PRId64 " bytes written\n",
(int64_t) swapout.sio->offset());
StoreClientStats statsVisitor(mb);
SwapDir::optionMaxSizeDump(StoreEntry * e) const
{
if (max_objsize != -1)
- storeAppendPrintf(e, " max-size=%"PRId64, max_objsize);
+ storeAppendPrintf(e, " max-size=%" PRId64, max_objsize);
}
/* Swapdirs do not have an index of their own - thus they ask their parent..
safe_free(user);
if (!Config.onoff.log_mime_hdrs) {
- logfilePrintf(logfile, "%9ld.%03d %6d %s %s/%03d %"PRId64" %s %s %s %s%s/%s %s\n",
+ logfilePrintf(logfile, "%9ld.%03d %6d %s %s/%03d %" PRId64 " %s %s %s %s%s/%s %s\n",
(long int) current_time.tv_sec,
(int) current_time.tv_usec / 1000,
al->cache.msec,
} else {
char *ereq = log_quote(al->headers.request);
char *erep = log_quote(al->headers.reply);
- logfilePrintf(logfile, "%9ld.%03d %6d %s %s/%03d %"PRId64" %s %s %s %s%s/%s %s [%s] [%s]\n",
+ logfilePrintf(logfile, "%9ld.%03d %6d %s %s/%03d %" PRId64 " %s %s %s %s%s/%s %s [%s] [%s]\n",
(long int) current_time.tv_sec,
(int) current_time.tv_usec / 1000,
al->cache.msec,
user2 = accessLogFormatName(al->cache.rfc931);
- logfilePrintf(logfile, "%s %s %s [%s] \"%s %s HTTP/%d.%d\" %d %"PRId64" %s:%s%s",
+ logfilePrintf(logfile, "%s %s %s [%s] \"%s %s HTTP/%d.%d\" %d %" PRId64 " %s:%s%s",
client,
user2 ? user2 : dash_str,
user1 ? user1 : dash_str,
if (user && !*user)
safe_free(user);
- logfilePrintf(logfile, "%9ld.%03d %6d %s -/%03d %"PRId64" %s %s %s -/%s -\n",
+ logfilePrintf(logfile, "%9ld.%03d %6d %s -/%03d %" PRId64 " %s %s %s -/%s -\n",
(long int) current_time.tv_sec,
(int) current_time.tv_usec / 1000,
static void
dump_b_int64_t(StoreEntry * entry, const char *name, int64_t var)
{
- storeAppendPrintf(entry, "%s %"PRId64" %s\n", name, var, B_BYTES_STR);
+ storeAppendPrintf(entry, "%s %" PRId64 " %s\n", name, var, B_BYTES_STR);
}
static void
dump_kb_int64_t(StoreEntry * entry, const char *name, int64_t var)
{
- storeAppendPrintf(entry, "%s %"PRId64" %s\n", name, var, B_KBYTES_STR);
+ storeAppendPrintf(entry, "%s %" PRId64 " %s\n", name, var, B_KBYTES_STR);
}
static void
#ifdef _SQUID_MSWIN_
- storeAppendPrintf(&dumpEntry, "%4d 0x%-8lX %-6.6s %4d %7"PRId64"%c %7"PRId64"%c %-21s %s\n",
+ storeAppendPrintf(&dumpEntry, "%4d 0x%-8lX %-6.6s %4d %7" PRId64 "%c %7" PRId64 "%c %-21s %s\n",
fdNumber,
win32.handle,
#else
- storeAppendPrintf(&dumpEntry, "%4d %-6.6s %4d %7"PRId64"%c %7"PRId64"%c %-21s %s\n",
+ storeAppendPrintf(&dumpEntry, "%4d %-6.6s %4d %7" PRId64 "%c %7" PRId64 "%c %-21s %s\n",
fdNumber,
#endif
fdTypeStr[type],
CossSwapDir::statfs(StoreEntry & sentry) const
{
storeAppendPrintf(&sentry, "\n");
- storeAppendPrintf(&sentry, "Maximum Size: %"PRIu64" KB\n", max_size);
- storeAppendPrintf(&sentry, "Current Size: %"PRIu64" KB\n", cur_size);
+ storeAppendPrintf(&sentry, "Maximum Size: %" PRIu64 " KB\n", max_size);
+ storeAppendPrintf(&sentry, "Current Size: %" PRIu64 " KB\n", cur_size);
storeAppendPrintf(&sentry, "Percent Used: %0.2f%%\n",
(100.0 * (double)cur_size / (double)max_size) );
storeAppendPrintf(&sentry, "Number of object collisions: %d\n", (int) numcollisions);
void
CossSwapDir::dump(StoreEntry &entry)const
{
- storeAppendPrintf(&entry, " %"PRIu64"", (max_size >> 10));
+ storeAppendPrintf(&entry, " %" PRIu64, (max_size >> 10));
dumpOptions(&entry);
}
int x;
storeAppendPrintf(&sentry, "First level subdirectories: %d\n", l1);
storeAppendPrintf(&sentry, "Second level subdirectories: %d\n", l2);
- storeAppendPrintf(&sentry, "Maximum Size: %"PRIu64" KB\n", max_size);
- storeAppendPrintf(&sentry, "Current Size: %"PRIu64" KB\n", cur_size);
+ storeAppendPrintf(&sentry, "Maximum Size: %" PRIu64 " KB\n", max_size);
+ storeAppendPrintf(&sentry, "Current Size: %" PRIu64 " KB\n", cur_size);
storeAppendPrintf(&sentry, "Percent Used: %0.2f%%\n",
(double)(100.0 * cur_size) / (double)max_size);
storeAppendPrintf(&sentry, "Filemap bits in use: %d of %d (%d%%)\n",
void
UFSSwapDir::dump(StoreEntry & entry) const
{
- storeAppendPrintf(&entry, " %"PRIu64" %d %d",
+ storeAppendPrintf(&entry, " %" PRIu64 " %d %d",
(max_size >> 10),
l1,
l2);
snprintf(icon, 2048, "<IMG border=\"0\" SRC=\"%s\" ALT=\"%-6s\">",
mimeGetIconURL(parts->name),
"[FILE]");
- snprintf(size, 2048, " %6"PRId64"k", parts->size);
+ snprintf(size, 2048, " %6" PRId64 "k", parts->size);
break;
}
debugs(9, 3, HERE);
- snprintf(cbuf, 1024, "REST %"PRId64"\r\n", ftpState->restart_offset);
+ snprintf(cbuf, 1024, "REST %" PRId64 "\r\n", ftpState->restart_offset);
ftpState->writeCommand(cbuf);
ftpState->state = SENT_REST;
}
if (conn != NULL) {
fd = conn->fd;
- storeAppendPrintf(s, "\tFD %d, read %"PRId64", wrote %"PRId64"\n", fd,
+ storeAppendPrintf(s, "\tFD %d, read %" PRId64 ", wrote %" PRId64 "\n", fd,
fd_table[fd].bytes_read, fd_table[fd].bytes_written);
storeAppendPrintf(s, "\tFD desc: %s\n", fd_table[fd].desc);
storeAppendPrintf(s, "\tin: buf %p, offset %ld, size %ld\n",
output->Printf("\tClient #%d, %p\n", clientNumber, _callback.callback_data);
- output->Printf("\t\tcopy_offset: %"PRId64"\n",
+ output->Printf("\t\tcopy_offset: %" PRId64 "\n",
copyInto.offset);
output->Printf("\t\tcopy_size: %d\n",
storeAppendPrintf(&output, "Store Directory Statistics:\n");
storeAppendPrintf(&output, "Store Entries : %lu\n",
(unsigned long int)StoreEntry::inUseCount());
- storeAppendPrintf(&output, "Maximum Swap Size : %"PRIu64" KB\n",
+ storeAppendPrintf(&output, "Maximum Swap Size : %" PRIu64 " KB\n",
maxSize());
storeAppendPrintf(&output, "Current Store Swap Size: %8lu KB\n",
store_swap_size);
- storeAppendPrintf(&output, "Current Capacity : %"PRId64"%% used, %"PRId64"%% free\n",
+ storeAppendPrintf(&output, "Current Capacity : %" PRId64 "%% used, %" PRId64 "%% free\n",
Math::int64Percent(store_swap_size, maxSize()),
Math::int64Percent((maxSize() - store_swap_size), maxSize()));
/* FIXME Here we should output memory statistics */
String ctype=(reply->content_type.size() ? reply->content_type.termedBuf() : str_unknown);
- logfilePrintf(storelog, "%9d.%03d %-7s %02d %08X %s %4d %9d %9d %9d " SQUIDSTRINGPH " %"PRId64"/%"PRId64" %s %s\n",
+ logfilePrintf(storelog, "%9d.%03d %-7s %02d %08X %s %4d %9d %9d %9d " SQUIDSTRINGPH " %" PRId64 "/%" PRId64 " %s %s\n",
(int) current_time.tv_sec,
(int) current_time.tv_usec / 1000,
storeLogTags[tag],
mp = mallinfo();
- fprintf(debug_log, "Memory usage for "APP_SHORTNAME" via mallinfo():\n");
+ fprintf(debug_log, "Memory usage for " APP_SHORTNAME " via mallinfo():\n");
fprintf(debug_log, "\ttotal space in arena: %6ld KB\n",
(long)mp.arena >> 10);