Differential cross sections and scaling in π−p → X−p at 25 and 40 GeV/c