As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
DURING CRUISE AT FL390, NOTICED SMOKE AND SMELLED FUMES IN COCKPIT AND CABIN. THE AIRCRAFT DIVERTED TO DEN WHERE AN EMERGENCY WAS DECLARED AND AN UNEVENTFUL LANDING WAS ACCOMPLISHED. MAINTENANCE REPLACED THE RIGHT AIR CYCLE MACHINE, OPERATIONAL CHECK OK.