some discomfort while passing wind is very common complaint but not every time. if this is a constant feature having pain passing wind and stool then you should get it examined by a pediatrician
if there is any fissure or other local problem causing this.
the symptoms of inconsistent consistency can be tackled by giving a fiber rich diet that will take care of loose stools as well as constipation
. like avoiding processed food, junk food, using whole grain bread, fruits and green leafy vegetables, and limiting dairy products are some dietary modifications that may help.
hope you benefit from my advice
Dr. Amit Kumar