OpenSolaris

Printable Version Enter a New Search
Bug ID 6676967
Synopsis incorrectly using %lld in several places
State 10-Fix Delivered (Fix available in build)
Category:Subcategory benchmarks:filebench
Keywords
Responsible Engineer Andrew W Wilson
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_87
Fixed In snv_87
Release Fixed solaris_nevada(snv_87)
Related Bugs
Submit Date 18-March-2008
Last Update Date 9-April-2008
Description
filebench incorrectly uses %lld in the following places:

- fileset_create()'s "Preallocated %d of %lld of %s %s in %lld seconds",
- fileset_populate()'s filebench_log(LOG_VERBOSE, "Fileset %s: %lld files, "
- fileset_print()'s  "%s/%s%s%9lld     (Single File)",
- fileset_print()'s filebench_log(LOG_INFO, "%s/%s%s%9lld%12lld%10lld"
- randdist_init_one()'s  "init random var %s: Mean = %6.0llf, Gamma = %6.3llf, Min = %lld",
- flowoplib_read()'s "read file %s failed, offset %lld "
- flowoplib_aiowrite()'s ""aio fd=%d, bytes=%lld, offset=%lld","
- flowoplib_bwlimit()'s "filebench_log(LOG_DEBUG_IMPL, "%lld bytes, %lld events",
- flowoplib_write()'s "offset %lld io buffer %zd: %s",
- flowoplib_testrandvar_destruct()'s "testrandvar: ops = %lld, mean = %8.2lf, stddev = %8.2lf",
- procflow_init()'s "procflow_init %s, %lld",
- procflow_wait()'s "filebench_log(LOG_DEBUG_IMPL, "Waited for pid %lld", wpid);"
- stats_findvar()'s filebench_log(LOG_DEBUG_IMPL, "reading stats %s = %lld",
- threadflow_init()'s  "Starting %lld %s threads",
- avd_int_alloc()'s "        filebench_log(LOG_DEBUG_IMPL, "Alloc integer %lld", integer);"
- var_assign_integer()'s "filebench_log(LOG_DEBUG_SCRIPT, "Assign integer %s=%lld","
- var_to_string()'s "(void) snprintf(tmp, sizeof (tmp), "%lld","
- var_randvar_to_string()'s "(void) snprintf(tmp, sizeof (tmp), "%lld", value);"
- var_assign_var()'s ""Assign var %s=%lld", name, src_var->var_val.integer);"


Then in parser_gram.y
- ""packing foreach: %zx %s=%lld, cmd %zx","
- ""Eventgen: %lld per second", rate);"
- filebench_log(LOG_VERBOSE, "Iterating %s=%lld",
- "Setting instances = %lld", instances);
- filebench_log(LOG_DEBUG_IMPL, "Setting pri = %lld",
- "define thread: Setting instances = %lld",
- "define thread: Setting memsize = %lld",
- filebench_log(LOG_INFO, "Run took %lld seconds...", timeslept);
- "Waited for pid %lld", pid);
Work Around
N/A
Comments
N/A