The correct answer is - a desire for glory.
Once he has managed to blind the Cyclops, Ulysses wanted his accomplishments to be acknowledged, which is why he started shouting his name for everyone to hear. Up to that point, he was travelling incognito, but after that, he wanted everyone to know who he is and how he managed to outsmart the Cyclops.