Skip to content

Commit

Permalink
libbladeRF: Changed "loss of precision" warning to debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
jynik committed Aug 1, 2014
1 parent cb7884f commit bc560bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion host/libraries/libbladeRF/src/si5338.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ static int si5338_calculate_multisynth(struct si5338_multisynth *ms, struct blad

/* Loss of precision if num or den are greater than 2^30-1 */
while (abc.num > (1<<30) || abc.den > (1<<30) ) {
log_warning( "Loss of precision in reducing fraction from %"PRIu64"/%"PRIu64" to %"PRIu64"/%"PRIu64"\n", abc.num, abc.den, abc.num>>1, abc.den>>1);
log_debug("Loss of precision in reducing fraction from "
"%"PRIu64"/%"PRIu64" to %"PRIu64"/%"PRIu64"\n",
abc.num, abc.den, abc.num>>1, abc.den>>1);
abc.num >>= 1;
abc.den >>= 1;
}
Expand Down

0 comments on commit bc560bc

Please sign in to comment.