You probably haven't but if you have, you've just made your self a massive problem. What ever you do, do NOT hit the dog or else you'll piss the bond between it and you. As a last resort, i would try an electric shock collar that automatically shock it when it barks, but be careful, because if the other dog barks or there's a loud enough noise, it'll still get a shock. A lad i used to speak to who keeps a fair few dogs, his new dog barked all the time, he tried everything, then he resorted to the bark collar, and it soon stopped barking.