b=15981
i=adilger
i=rread
i=nathan.rutman
- rc = sscanf(buffer, "[%Lx - %Lx]\n", &tmp.lr_start, &tmp.lr_end);
+ rc = sscanf(buffer, "[%Lx - %Lx]\n",(long long unsigned *)&tmp.lr_start,
+ (long long unsigned *)&tmp.lr_end);
if (rc != 2 || !range_is_sane(&tmp) || range_is_zero(&tmp))
RETURN(-EINVAL);
*range = tmp;
if (rc != 2 || !range_is_sane(&tmp) || range_is_zero(&tmp))
RETURN(-EINVAL);
*range = tmp;
- rc = snprintf(page, count, "[%Lx - %Lx]\n",
+ rc = snprintf(page, count, "["LPX64" - "LPX64"]\n",
PRANGE(range));
RETURN(rc);
}
PRANGE(range));
RETURN(rc);
}
} else {
unlock_page(page);
CWARN("NULL mapping page %p, truncated by others: "
} else {
unlock_page(page);
CWARN("NULL mapping page %p, truncated by others: "
- "hash(%#llx) | start(%#llx) | end(%#llx)\n",
+ "hash("LPX64") | start("LPX64") | end("LPX64")\n",
page, hash, start, end);
}
page_cache_release(page);
page, hash, start, end);
}
page_cache_release(page);
* entries with smaller hash values. Stale page should
* be invalidated, and new one fetched.
*/
* entries with smaller hash values. Stale page should
* be invalidated, and new one fetched.
*/
- CWARN("Stale readpage page %p: %#llx != %#llx\n",
+ CWARN("Stale readpage page %p: "LPX64" != "LPX64"\n",
page, hash, start);
ll_release_page(page, hash, start, end);
} else {
page, hash, start);
ll_release_page(page, hash, start, end);
} else {
LL_CDEBUG_PAGE(D_PAGE, pages[i], "offset "LPU64","
" from %u, bytes = %u\n",
LL_CDEBUG_PAGE(D_PAGE, pages[i], "offset "LPU64","
" from %u, bytes = %u\n",
+ (__u64)pos, from, bytes);
LASSERTF(pos >> CFS_PAGE_SHIFT == pages[i]->index,
"wrong page index %lu (%lu)\n",
pages[i]->index,
LASSERTF(pos >> CFS_PAGE_SHIFT == pages[i]->index,
"wrong page index %lu (%lu)\n",
pages[i]->index,
if (IS_ERR(page)) {
rc = PTR_ERR(page);
if (IS_ERR(page)) {
rc = PTR_ERR(page);
- CERROR("error reading dir "DFID" at %llu/%u: rc %d\n",
+ CERROR("error reading dir "DFID" at "LPU64"/%u: rc %d\n",
PFID(ll_inode2fid(dir)), pos,
sai->sai_index, rc);
break;
PFID(ll_inode2fid(dir)), pos,
sai->sai_index, rc);
break;
if (IS_ERR(page)) {
rc = PTR_ERR(page);
if (IS_ERR(page)) {
rc = PTR_ERR(page);
- CERROR("error reading dir "DFID" at %llu: rc %d\n",
+ CERROR("error reading dir "DFID" at "LPU64": rc %d\n",
PFID(ll_inode2fid(dir)), pos, rc);
break;
}
PFID(ll_inode2fid(dir)), pos, rc);
break;
}