X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=aft.c;h=96f65e99fbf5b1bd2ae7eb863b864ce77e743c70;hb=213b3181e7f8ebd07ec37e256188ea9094722cef;hp=4893f215b8a46cd9c18d0b03e0262b1ff68f72df;hpb=6d4179add38f41f609db21885e079145e4b5ea6a;p=paraslash.git diff --git a/aft.c b/aft.c index 4893f215..96f65e99 100644 --- a/aft.c +++ b/aft.c @@ -2548,8 +2548,10 @@ static void com_setatt_callback(int fd, const struct osl_object *query) break; p[len - 1] = '\0'; ret = get_attribute_bitnum_by_name(p, &bitnum); - if (ret < 0) + if (ret < 0) { + para_printf(&cad.pb, "attribute not found: %s\n", p); goto out; + } if (c == '+') cad.add_mask |= (1UL << bitnum); else @@ -2720,9 +2722,9 @@ static int aft_open(const char *dir) PARA_INFO_LOG("audio file table contains %d files\n", num); return ret; } - PARA_INFO_LOG("failed to open audio file table\n"); + PARA_NOTICE_LOG("failed to open audio file table\n"); audio_file_table = NULL; - if (ret >= 0 || ret == -OSL_ERRNO_TO_PARA_ERROR(E_OSL_NOENT)) + if (ret == -OSL_ERRNO_TO_PARA_ERROR(E_OSL_NOENT)) return 1; return ret; }