@@ -203,6 +203,7 @@ void logfc(struct fc_log *log, const char *prefix, char level, const char *fmt,
203
203
*/
204
204
#define infof (fc , fmt , ...) __logfc(fc, 'i', fmt, ## __VA_ARGS__)
205
205
#define info_plog (p , fmt , ...) __plog(p, 'i', fmt, ## __VA_ARGS__)
206
+ #define infofc (p , fmt , ...) __plog((&(fc)->log), 'i', fmt, ## __VA_ARGS__)
206
207
207
208
/**
208
209
* warnf - Store supplementary warning message
@@ -214,6 +215,7 @@ void logfc(struct fc_log *log, const char *prefix, char level, const char *fmt,
214
215
*/
215
216
#define warnf (fc , fmt , ...) __logfc(fc, 'w', fmt, ## __VA_ARGS__)
216
217
#define warn_plog (p , fmt , ...) __plog(p, 'w', fmt, ## __VA_ARGS__)
218
+ #define warnfc (fc , fmt , ...) __plog((&(fc)->log), 'w', fmt, ## __VA_ARGS__)
217
219
218
220
/**
219
221
* errorf - Store supplementary error message
@@ -225,6 +227,7 @@ void logfc(struct fc_log *log, const char *prefix, char level, const char *fmt,
225
227
*/
226
228
#define errorf (fc , fmt , ...) __logfc(fc, 'e', fmt, ## __VA_ARGS__)
227
229
#define error_plog (p , fmt , ...) __plog(p, 'e', fmt, ## __VA_ARGS__)
230
+ #define errorfc (fc , fmt , ...) __plog((&(fc)->log), 'e', fmt, ## __VA_ARGS__)
228
231
229
232
/**
230
233
* invalf - Store supplementary invalid argument error message
@@ -236,5 +239,6 @@ void logfc(struct fc_log *log, const char *prefix, char level, const char *fmt,
236
239
*/
237
240
#define invalf (fc , fmt , ...) (errorf(fc, fmt, ## __VA_ARGS__), -EINVAL)
238
241
#define inval_plog (p , fmt , ...) (error_plog(p, fmt, ## __VA_ARGS__), -EINVAL)
242
+ #define invalfc (fc , fmt , ...) (errorfc(fc, fmt, ## __VA_ARGS__), -EINVAL)
239
243
240
244
#endif /* _LINUX_FS_CONTEXT_H */
0 commit comments