Let $f$ be a non-constant polynomial with integers coefficients, and for each prime number $p$ let $\eta_f(p)$ be the number of zeros of $f$ modulo $p$. It is known that the average (in the natural way) of $\eta_f(p)$ among all primes $p$ is equal to the number $r$ of irreducible factors of $f$ in $\mathbb{Q}[X]$. (On p. 32 of [1] this result is attributed to Kronecker.)
I am looking for a reference to an asymptotic formula like: $$(1)\quad \sum_{p \leq x} \eta_f(p)\,\frac{\log p}{p} = r \log x + \text{Good error term}.$$ (Or something from which (1) could be obtained by partial summation.)
I know that (1) can be proved using Chebotarev density theorem and Burnside's lemma (and, if I am not wrong, the error term should be $O(1)$). Anyway, I am interested in a reference from a book or an article.
Thank you in advance for any help.
[1] P. Stevenhagen and H. W. Lenstra, Chebotarëv and his density theorem, Math. Intelligencer 18 (1996), no. 2, 26–37.
EDIT: If instead $f$ is a non-constant polynomial with coefficients in the ring of integers $\mathcal{O}_k$ of a number field $k$, and $\eta_f(p)$ is the number of $n \in \{0, 1, \ldots, p-1\}$ such that $f(n) / p$ is an algebraic integers, does something like (1) still hold? With which constant instead of $r$?