2 * acl->naces);
if (nt_ace_list==NULL)
{
- DEBUG(10, ("talloc error with %d aces", acl->naces));
+ DEBUG(10, ("talloc error with %d aces\n", acl->naces));
errno = ENOMEM;
return false;
}
/* returns a NULL ace list when good_aces is zero. */
if (good_aces && nt_ace_list == NULL) {
- DEBUG(10, ("realloc error with %d aces", good_aces));
+ DEBUG(10, ("realloc error with %d aces\n", good_aces));
errno = ENOMEM;
return false;
}
acl_size = sizeof(unsigned);
if (naces > NFS4ACL_XDR_MAX_ACES) {
- DBG_ERR("Too many ACEs: %u", naces);
+ DBG_ERR("Too many ACEs: %u\n", naces);
return 0;
}
acl_size = 2 * sizeof(unsigned);
if (naces > NFS4ACL_XDR_MAX_ACES) {
- DBG_ERR("Too many ACEs: %u", naces);
+ DBG_ERR("Too many ACEs: %u\n", naces);
return 0;
}
acl_size = sizeof(aclflag4) + sizeof(unsigned);
if (naces > NFS4ACL_XDR_MAX_ACES) {
- DBG_ERR("Too many ACEs: %u", naces);
+ DBG_ERR("Too many ACEs: %u\n", naces);
return 0;
}
ZERO_STRUCT(*acl);
acl->ctx = talloc_init("afs_acl");
if (acl->ctx == NULL) {
- DEBUG(10, ("Could not init afs_acl"));
+ DEBUG(10, ("Could not init afs_acl\n"));
return false;
}
return true;
acl_type_t acl_type_info;
int rc;
- DEBUG(10, ("aixjfs2_sys_acl_set_fd invoked for %s", fsp_str_dbg(fsp)));
+ DEBUG(10, ("aixjfs2_sys_acl_set_fd invoked for %s\n", fsp_str_dbg(fsp)));
rc = aixjfs2_query_acl_support(fsp->fsp_name->base_name, ACL_AIXC,
&acl_type_info);
llu(stx->stx_btime.tv_sec));
if ((stx->stx_mask & SAMBA_STATX_ATTR_MASK) != SAMBA_STATX_ATTR_MASK) {
- DBG_WARNING("%s: stx->stx_mask is incorrect (wanted %x, got %x)",
+ DBG_WARNING("%s: stx->stx_mask is incorrect (wanted %x, got %x)\n",
__func__, SAMBA_STATX_ATTR_MASK, stx->stx_mask);
}
(result < 0) ? "failed: " : "",
(result < 0) ? strerror(errno) : "");
}
- DEBUG(1, ("vfs_extd_audit: fchmod %s mode 0x%x %s %s",
+ DEBUG(1, ("vfs_extd_audit: fchmod %s mode 0x%x %s %s\n",
fsp_str_dbg(fsp), (unsigned int)mode,
(result < 0) ? "failed: " : "",
(result < 0) ? strerror(errno) : ""));
}
if (fio == NULL) {
- DBG_ERR("Failed to fetch fsp extension");
+ DBG_ERR("Failed to fetch fsp extension\n");
return -1;
}
int cmp;
if (fio == NULL) {
- DBG_ERR("Failed to fetch fsp extension");
+ DBG_ERR("Failed to fetch fsp extension\n");
return -1;
}
ssize_t nwritten;
if (fio == NULL) {
- DBG_ERR("Failed to fetch fsp extension");
+ DBG_ERR("Failed to fetch fsp extension\n");
return -1;
}
int ret;
if (fio == NULL) {
- DBG_ERR("Failed to fetch fsp extension");
+ DBG_ERR("Failed to fetch fsp extension\n");
return -1;
}
off_t offset)
{
if (offset > 60) {
- DBG_WARNING("ftruncate %s to %jd",
+ DBG_WARNING("ftruncate %s to %jd\n",
fsp_str_dbg(fsp), (intmax_t)offset);
/* OS X returns NT_STATUS_ALLOTTED_SPACE_EXCEEDED */
errno = EOVERFLOW;
id.devid = mapped_device;
} else {
DBG_WARNING("Failed to map device [%jx], falling back to "
- "standard file_id [%jx]",
+ "standard file_id [%jx]\n",
(uintmax_t)sbuf->st_ex_dev,
(uintmax_t)id.devid);
}
if (ret == -1) {
/* don't complain if access was denied */
if (errno != EPERM && errno != EACCES) {
- DBG_WARNING("SMB_VFS_NEXT_FNTIMES failed: %s",
+ DBG_WARNING("SMB_VFS_NEXT_FNTIMES failed: %s\n",
strerror(errno));
}
return -1;
/* Now, call the script */
command = talloc_asprintf(tsmd, "%s offline \"%s\"", tsmd->hsmscript, path);
if(!command) {
- DEBUG(1, ("tsmsm_set_offline: can't allocate memory to run hsm script"));
+ DEBUG(1, ("tsmsm_set_offline: can't allocate memory to run hsm script\n"));
return NT_STATUS_NO_MEMORY;
}
DEBUG(10, ("tsmsm_set_offline: Running [%s]\n", command));
const char *media_dirname;
size_t media_dirname_len;
- DEBUG(10, ("Entering with path'%s' ", path));
+ DEBUG(10, ("Entering with path'%s'\n", path));
/* Sometimes Samba gives us "./OMFI MediaFiles". */
if (strnequal(path, "./", 2)) {
(void)get_digit_group(dname, &number);
digits = talloc_asprintf(talloc_tos(), "%ju", number);
if (digits == NULL) {
- DEBUG(1, ("out of memory"));
+ DEBUG(1, ("out of memory\n"));
goto err;
}
digits_len = strlen(digits);
config->io_h = virusfilter_io_new(config, connect_timeout, io_timeout);
if (config->io_h == NULL) {
- DBG_ERR("virusfilter_io_new failed");
+ DBG_ERR("virusfilter_io_new failed\n");
return -1;
}
scan_result, scan_report);
if (!ok) {
DBG_ERR("Cannot create cache entry: "
- "virusfilter_cache_entry_new failed");
+ "virusfilter_cache_entry_new failed\n");
goto virusfilter_scan_return;
}
} else if (is_cache) {
return ret;
}
- DBG_DEBUG("Fallback to xattr");
+ DBG_DEBUG("Fallback to xattr\n");
if (strcmp(name, XATTR_NTACL_NAME) == 0) {
return SMB_VFS_NEXT_FSETXATTR(handle, fsp, XATTR_USER_NTACL,
value, size, flags);
if(errno == ENOSYS) {
DEBUG(9, ("acl(ACE_SETACL, %s): Operation is not "
"supported on the filesystem where the file "
- "reside", fsp_str_dbg(fsp)));
+ "reside\n", fsp_str_dbg(fsp)));
} else {
- DEBUG(9, ("acl(ACE_SETACL, %s): %s ", fsp_str_dbg(fsp),
+ DEBUG(9, ("acl(ACE_SETACL, %s): %s\n", fsp_str_dbg(fsp),
strerror(errno)));
}
return false;
if (errno == ENOSYS) {
dbg_level = 1;
}
- DEBUG(dbg_level, ("facl(ACE_GETACLCNT, %s): %s ",
+ DEBUG(dbg_level, ("facl(ACE_GETACLCNT, %s): %s\n",
fsp_str_dbg(fsp), strerror(errno)));
return naces;
}
rv = facl(fd, ACE_GETACL, naces, acebuf);
if (rv == -1) {
- DBG_DEBUG("acl(ACE_GETACL, %s): %s ",
+ DBG_DEBUG("acl(ACE_GETACL, %s): %s\n",
fsp_str_dbg(fsp), strerror(errno));
return -1;
}