Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change dt_cg_agg_lquantize() arg check to agree with message
We check limitval<baseval, but the error message is "base must be less than limit". Make the check more stringent to agree with the error message. Note that this behavior dates back to DTrace v1: # dtrace -n 'BEGIN {@ = lquantize(8, 4, 4); exit(0) }' dtrace: invalid probe specifier: lquantize( ) step (argument #3) too large: must have at least one quantization level That is, the arguments pass the check but are then caught by a later, rather confusing, message. Add a test to catch this case. Signed-off-by: Eugene Loh <eugene.loh@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information