28 static char err_buf[1024];
57 if (!printk_ratelimit())
62 spin_lock(&err_buf_lock);
64 vsnprintf(err_buf,
sizeof(err_buf), fmt, args);
68 sb->
s_id, flen ?
function :
"", err_buf);
71 flen ?
function :
"", err_buf);
72 spin_unlock(&err_buf_lock);
101 if (!printk_ratelimit())
106 spin_lock(&err_buf_lock);
108 vsnprintf(err_buf,
sizeof(err_buf), fmt, args);
112 sb->
s_id, flen ?
function :
"", err_buf);
115 flen ?
function :
"", err_buf);
116 spin_unlock(&err_buf_lock);
124 void __ntfs_debug (
const char *
file,
int line,
const char *
function,
125 const char *
fmt, ...)
134 spin_lock(&err_buf_lock);
136 vsnprintf(err_buf,
sizeof(err_buf), fmt, args);
139 flen ?
function :
"", err_buf);
140 spin_unlock(&err_buf_lock);
147 const char *lcn_str[5] = {
"LCN_HOLE ",
"LCN_RL_NOT_MAPPED",
148 "LCN_ENOENT ",
"LCN_unknown " };
159 LCN lcn = (rl +
i)->lcn;
162 int index = -lcn - 1;
167 (
long long)(rl + i)->vcn, lcn_str[index],
168 (
long long)(rl + i)->
length,
173 (
long long)(rl + i)->vcn,
174 (
long long)(rl + i)->lcn,
175 (
long long)(rl + i)->
length,