Log state names not numbers

Change-Id: Ieefdcc8c910b5fd8e50c9c08793f1d80c76f623c