append return value to output

Bug: 46374
Change-Id: I05946b492cbe5eed2ccb199f9ba29fbb3c303a5a