(b) Every commander of a guard, warden, keeper or officer of a municipal, county or state place of confinement to whose charge a prisoner subject to this article is committed, shall, within twenty-four hours after that commitment, report to the commanding officer of the prisoner, report the name of the prisoner, the offense charged against him, and the name of the person who ordered or authorized the commitment.