If the vet says it is kidney stones, there's special food he can eat to alleviate the problem in the future. Don't panic, just talk calmly with the vet. Make sure it's not just a urinary tract infection.