return ENOMEM;
}
- DEBUG(10, ("xattr_name: %s, stream_name: %s\n", *xattr_name,
- stream_name));
+ DBG_DEBUG("%s, stream_name: %s\n", *xattr_name, stream_name);
return 0;
}
return -1;
}
- DEBUG(10, ("sbuf->st_ex_size = %d\n", (int)sbuf->st_ex_size));
+ DBG_DEBUG("sbuf->st_ex_size = %jd\n", (intmax_t)sbuf->st_ex_size);
sbuf->st_ex_ino = hash_inode(sbuf, io->xattr_name);
sbuf->st_ex_mode &= ~S_IFMT;
* we got O_CREAT, the higher levels should have created
* the base file for us.
*/
- DBG_DEBUG("streams_xattr_open: base file %s not around, "
- "returning ENOENT\n", smb_fname->base_name);
+ DBG_DEBUG("base file %s not around, "
+ "returning ENOENT\n",
+ smb_fname->base_name);
errno = ENOENT;
goto fail;
}
fd = fsp_get_pathref_fd(fsp);
- DBG_DEBUG("streams_xattr_close called [%s] fd [%d]\n",
- smb_fname_str_dbg(fsp->fsp_name), fd);
+ DBG_DEBUG("called [%s] fd [%d]\n",
+ smb_fname_str_dbg(fsp->fsp_name),
+ fd);
if (!fsp_is_alternate_stream(fsp)) {
return SMB_VFS_NEXT_CLOSE(handle, fsp);
struct ea_struct ea;
int ret;
- DEBUG(10, ("streams_xattr_pwrite called for %d bytes\n", (int)n));
+ DBG_DEBUG("offset=%jd, size=%zu\n", (intmax_t)offset, n);
if (sio == NULL) {
return SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, offset);
int ret;
size_t length, overlap;
- DEBUG(10, ("streams_xattr_pread: offset=%d, size=%d\n",
- (int)offset, (int)n));
+ DBG_DEBUG("offset=%jd, size=%zu\n", (intmax_t)offset, n);
if (sio == NULL) {
return SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset);
length = ea.value.length-1;
- DBG_DEBUG("get_ea_value_fsp returned %d bytes\n",
- (int)length);
+ DBG_DEBUG("get_ea_value_fsp returned %zu bytes\n", length);
/* Attempt to read past EOF. */
if (length <= offset) {
struct stream_io *sio =
(struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
- DEBUG(10, ("streams_xattr_ftruncate called for file %s offset %.0f\n",
- fsp_str_dbg(fsp), (double)offset));
+ DBG_DEBUG("called for file %s offset %ju\n",
+ fsp_str_dbg(fsp),
+ (intmax_t)offset);
if (sio == NULL) {
return SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
struct stream_io *sio =
(struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
- DEBUG(10, ("streams_xattr_fallocate called for file %s offset %.0f"
- "len = %.0f\n",
- fsp_str_dbg(fsp), (double)offset, (double)len));
+ DBG_DEBUG("called for file %s offset %jd len=%jd\n",
+ fsp_str_dbg(fsp),
+ (intmax_t)offset,
+ (intmax_t)len);
if (sio == NULL) {
return SMB_VFS_NEXT_FALLOCATE(handle, fsp, mode, offset, len);