This question already has an answer here:
I haven two passports (US & Irish). I'm currently traveling on my US passport but it's getting full & want to switch to my Irish passport so I will be able to get a visa when in Indonesia. Will I have any problems at immigration? Should I just stay in Malaysia and get another American passport?