X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libatalk%2Fvfs%2Fextattr.c;h=0115c1534bca209cb9b43e82ed2ba32a8a93695b;hb=be96d276348da0a7e66eeec844b306e8a5fa8fac;hp=7b3ea32e012d9ff57b0651fef8e9be0cb0ca9560;hpb=c49118e149c1faefb16ec4352f8ebbad1658ab96;p=netatalk.git diff --git a/libatalk/vfs/extattr.c b/libatalk/vfs/extattr.c index 7b3ea32e..0115c153 100644 --- a/libatalk/vfs/extattr.c +++ b/libatalk/vfs/extattr.c @@ -59,6 +59,7 @@ #include #include #include +#include /******** Solaris EA helper function prototypes ********/ #ifdef HAVE_ATTROPEN @@ -842,7 +843,8 @@ static int solaris_attropen(const char *path, const char *attrpath, int oflag, m { int filedes = attropen(path, attrpath, oflag, mode); if (filedes == -1) { - LOG(log_maxdebug, logtype_default, "attropen FAILED: path: %s, name: %s, errno: %s\n",path,attrpath,strerror(errno)); + LOG(log_maxdebug, logtype_default, "attropen FAILED: path: %s, name: %s, errno: %s", + path, attrpath, strerror(errno)); errno = ENOATTR; } return filedes; @@ -852,7 +854,8 @@ static int solaris_openat(int fildes, const char *path, int oflag, mode_t mode) { int filedes = openat(fildes, path, oflag, mode); if (filedes == -1) { - LOG(log_maxdebug, logtype_default, "openat FAILED: fd: %s, path: %s, errno: %s\n",filedes,path,strerror(errno)); + LOG(log_maxdebug, logtype_default, "openat FAILED: fd: %d, path: %s, errno: %s", + filedes, path, strerror(errno)); } return filedes; } @@ -862,7 +865,7 @@ static int solaris_write_xattr(int attrfd, const char *value, size_t size) if ((ftruncate(attrfd, 0) == 0) && (write(attrfd, value, size) == size)) { return 0; } else { - LOG(log_maxdebug, logtype_default, "solaris_write_xattr FAILED!\n"); + LOG(log_maxdebug, logtype_default, "solaris_write_xattr FAILED!"); return -1; } }