[sr-dev] select error without line number

Juha Heinanen jh at tutpro.com
Sat Jan 21 01:49:06 CET 2017


Daniel-Constantin Mierla writes:

> I just pushed a patch that should print cfg line and column in such
> case. Can you test and see if works ok?

The commit didn't change the syslog output.  The commit checks if
fix_rval returns negative result:

		case RVE_RVAL_OP:
			ret = fix_rval(&rve->left.rval);
			if (ret<0) goto error;
			return ret;

but looks like it always returns 0:

static int fix_rval(struct rvalue* rv)
{
...
        case RV_SEL:
			if (resolve_select(&rv->v.sel)<0){
				ERR("Unable to resolve select\n");
				print_select(&rv->v.sel);
			}
			return 0;

-- Juha



More information about the sr-dev mailing list