I'm currently using:

/run local s = GetSpecialization(false,true) == 1 and 2 or 1;SetSpecialization(s,true)

for swapping my pets talents between Ferocity and Tenacity.

Does anyone have the knowledge to tell me how I'd get it to print to local which specilization is currently being swapped to?