The line xcosα+ysinα=p is in normal form; its inclination to the positive x-axis is α+π/2, so its angle with the negative x-axis is π/2−α.
In the normal form xcosα+ysinα=p, the vector (cosα,sinα) is the unit normal to the line, making angle α with the positive x-axis. The line itself is perpendicular to this normal, so its direction vector is (−sinα,cosα), which makes angle α+π/2 with the positive x-axis.
Since the positive and negative x-axis directions are supplementary (differ by π), the angle the line makes with the negative x-axis direction is π−(α+π/2)=π/2−α.
Check: for α=0 (line x=p, vertical), this gives π/2 — correct, a vertical line makes 90∘ with either direction of the x-axis.