diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-02-28 16:28:21 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-03-08 21:43:18 -0500 |
commit | a2bf45329a172d2c53594c64d27f1c15ac26796a (patch) | |
tree | 93c6c3e7404e4abc605c410f978aefa3dd3231fa /libdimension/platform.c | |
parent | f69c955c28b7e5c2eaf4af036cb88480a8e433f3 (diff) | |
download | dimension-a2bf45329a172d2c53594c64d27f1c15ac26796a.tar.xz |
New dmnsn_warning() API, remove different severities.
Diffstat (limited to 'libdimension/platform.c')
-rw-r--r-- | libdimension/platform.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/platform.c b/libdimension/platform.c index a678cf4..1039ac7 100644 --- a/libdimension/platform.c +++ b/libdimension/platform.c @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2010 Tavian Barnes <tavianator@gmail.com> * + * Copyright (C) 2010-2011 Tavian Barnes <tavianator@gmail.com> * * * * This file is part of The Dimension Library. * * * @@ -87,7 +87,7 @@ dmnsn_ncpus(void) if (sched_getaffinity(0, sizeof(cpuset), &cpuset) == 0) { return CPU_COUNT(&cpuset); } else { - dmnsn_error(DMNSN_SEVERITY_MEDIUM, "sched_getaffinity() failed."); + dmnsn_warning("sched_getaffinity() failed."); return 1; } #elif DMNSN_SC_NPROCESSORS_ONLN @@ -95,7 +95,7 @@ dmnsn_ncpus(void) if (nprocs > 0) { return nprocs; } else { - dmnsn_error(DMNSN_SEVERITY_MEDIUM, "sysconf(_SC_NPROCESSORS_ONLN) failed."); + dmnsn_warning("sysconf(_SC_NPROCESSORS_ONLN) failed."); return 1; } #elif defined(_WIN32) @@ -120,7 +120,7 @@ dmnsn_get_times(dmnsn_timer *timer) if (!clk_tck) { clk_tck = sysconf(_SC_CLK_TCK); if (clk_tck == -1) { - dmnsn_error(DMNSN_SEVERITY_MEDIUM, "sysconf(_SC_CLK_TCK) failed."); + dmnsn_warning("sysconf(_SC_CLK_TCK) failed."); clk_tck = 1000000L; } } |