Skip to content

Commit e521dec

Browse files
JannePeltonenTuomasTaipale
authored andcommitted
linux-gen: timer: do not log an error in capability query
Do not log an error about an unsupported clock source in odp_timer_capability() since one intended use of the function is to probe which clock sources are supported. Print a debug message instead. This gets rid of an annoying error printout in odp_sysinfo output. Signed-off-by: Janne Peltonen <[email protected]> Reviewed-by: Jere Leppänen <[email protected]>
1 parent 800ccd4 commit e521dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/linux-generic/odp_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ int odp_timer_capability(odp_timer_clk_src_t clk_src,
13241324
odp_timer_capability_t *capa)
13251325
{
13261326
if (clk_src != ODP_CLOCK_DEFAULT) {
1327-
_ODP_ERR("Only ODP_CLOCK_DEFAULT supported. Requested %i.\n", clk_src);
1327+
_ODP_DBG("Only ODP_CLOCK_DEFAULT supported. Requested %i.\n", clk_src);
13281328
return -1;
13291329
}
13301330

0 commit comments

Comments
 (0)