As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
AIRCRAFT WAS GROUNDED: FLAP LEADING EDGE DEVICE RIGHT INBOARD SHOWED NOT IN UP POSITION AT 230 KNOTS AT 17000 FEET. NO DIRECTION CONTROL PROBLEM. AIRCRAFT RETURNED TO DFW. AIRCRAFT DID NOT DECLARE EMERGENCY AND WAS NOT OVERWEIGHT FOR LANDING. REMOVED AND REPLACED RIGHT INBOARD FLAP SENSOR S173 AND OPERATIONS CHECK PER AMM 27-81-00.