eina: use WRN for warning.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Dec 2011 13:28:32 +0000 (13:28 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Dec 2011 13:28:32 +0000 (13:28 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@66029 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_prefix.c

index 9445222..5b4b0c0 100644 (file)
@@ -150,25 +150,24 @@ _fallback(Eina_Prefix *pfx, const char *pkg_bin, const char *pkg_lib,
    STRDUP_REP(pfx->prefix_path_lib, pkg_lib);
    STRDUP_REP(pfx->prefix_path_data, pkg_data);
    STRDUP_REP(pfx->prefix_path_locale, pkg_locale);
-   fprintf(stderr,
-           "WARNING: Could not determine its installed prefix for '%s'\n"
-           "      so am falling back on the compiled in default:\n"
-           "        %s\n"
-           "      implied by the following:\n"
-           "        bindir    = %s\n"
-           "        libdir    = %s\n"
-           "        datadir   = %s\n"
-           "        localedir = %s\n"
-           "      Try setting the following environment variables:\n"
-           "        %s_PREFIX     - points to the base prefix of install\n"
-           "      or the next 4 variables\n"
-           "        %s_BIN_DIR    - provide a specific binary directory\n"
-           "        %s_LIB_DIR    - provide a specific library directory\n"
-           "        %s_DATA_DIR   - provide a specific data directory\n"
-           "        %s_LOCALE_DIR - provide a specific locale directory\n"
-           , envprefix,
-           pfx->prefix_path, pkg_bin, pkg_lib, pkg_data, pkg_locale,
-           envprefix, envprefix, envprefix, envprefix, envprefix);
+   WRN("Could not determine its installed prefix for '%s'\n"
+       "      so am falling back on the compiled in default:\n"
+       "        %s\n"
+       "      implied by the following:\n"
+       "        bindir    = %s\n"
+       "        libdir    = %s\n"
+       "        datadir   = %s\n"
+       "        localedir = %s\n"
+       "      Try setting the following environment variables:\n"
+       "        %s_PREFIX     - points to the base prefix of install\n"
+       "      or the next 4 variables\n"
+       "        %s_BIN_DIR    - provide a specific binary directory\n"
+       "        %s_LIB_DIR    - provide a specific library directory\n"
+       "        %s_DATA_DIR   - provide a specific data directory\n"
+       "        %s_LOCALE_DIR - provide a specific locale directory",
+       envprefix,
+       pfx->prefix_path, pkg_bin, pkg_lib, pkg_data, pkg_locale,
+       envprefix, envprefix, envprefix, envprefix, envprefix);
    pfx->fallback = 1;
    return 1;
 }